I need a pseudocode design to prompt a customer for their Email Address and the
ID: 3561698 • Letter: I
Question
I need a pseudocode design to prompt a customer for their Email Address and the titles of the three movies they want to rent. and then display the customers email address and total bill.. Bill a customer using the following rules:
Customers can only rent up to 3 movies at a time.
Each movie costs $1.50
A 5% Sales tax is added to the total cost
If the movie is rated R, the system must verify that the customer is 17 years old or older.
If the customer is under 18, an error message is printed stating that the customer is not allowed to rent the movie.
Explanation / Answer
Prompt "Input Account Number; enter 0 to quit"
Input String account_number;
If account_number Is Not Equal To 0 Then
Prompt "Enter Customer Name"
Input String customer_name
Prompt "Enter Account Balance:"
Input Single account_balance
Prompt "For Customer " + bill of customer +", with Account Number " + print cost_including_tax + ", the Starting Balance of " + bill of customer + " will be, over the next 17 years: " + LineBreak
Declare Integer X
For X = 1 To 3
Prompt "Month " + X + ": " + (bill of customer - (bill of customer * (cost_including_tax=(1.5*3)105/100) ) ) + LineBreak
Next X
Else If account_number Is Equal To 0 Then
Prompt "Program Exited"
End Program
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.