Customers get a discount on their restaurant bill. The discount is based on a customers age and a frequent diner card. A customer whose age is 55 or greater and who shows a diner card is eligible for 15% discount on the restaurant bill. A customer whose age is 55 or greater but without a diner card is eligible for a 5% discount on the restaurant bill. A customer with a diner club card is eligible for a 10% discount.
Produce the pseudocode logic for an algorithm that will compute the discount for each customer. The information is given as follows:
– The output will consist of a screen display showing the customer’s discount received.
– The input will consist of the keyboard input containing the customer’s age, diner club number, and restaurant bill amount.
– The processing will compute the discount received by each eligible customer. If the customer is not a senior or does not have a diner card, there should be no discount on the restaurant bill.

restaurant bill

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter message.