Monday, March 3, 2008

Assignment 1

Assignment A1: Conditional Statements (Duration: 2 practical periods)

The owner of FIZI restaurant distributes brochures to his customers informing discounts offered on selected menu for the month of April. To be eligible for the discount, a customer must order any three items of the menu. The discount for each item in the menu is shown in the table below.

The restaurant owner has requested you to write a program in C that reads the three ordered items and their normal prices. The program calculates the total amount to be billed to the customer based on the discount given for each item.

You must construct a pseudocode or flowchart before writing the program.

No comments: