Midterm Act
Midterm Act
Problem: Create a program that requests the user’s input for their payment and the price of the
total items they bought. The program must display “Insufficient funds” if the price exceeds the
amount of payment.
Problem Analysis:
A. Start
B. Request user to input his/her payment
C. Request user to input the total price of the items
D. If the total price of items is greater than the payment. Display ”Insufficient funds”.
E. End
Flowchart:
Pseudocode:
Problem: Create a program that determine if the student has passed the entrance exam. Request
for the user to input the score on the exam. The passing score is 70% and the total items are 100. If
the score higher than 70, the program should display “Congratulations on passing the exam, you
may enroll in our university.”. Else, display “You are required for an interview.”.
Problem Analysis:
A. Start
B. Request user to input the score on the exam.
C. If the score higher than 70, the program should display “Congratulations on passing the exam,
you may enroll in our university.”
D. Else, display “You are required for an interview.”.
E. End
Flowchart:
Pseudocode: