10-25-2011, 08:39 PM
[FONT="]Assignment No. 01
Semester: Fall 2011[/FONT]
[FONT="]CS201: Introduction to Programming[/FONT]
Semester: Fall 2011[/FONT]
[FONT="]CS201: Introduction to Programming[/FONT]
[FONT="]Assignment [/FONT]
[FONT="]Problem Statement[/FONT][FONT="]: Virtual Restaurant [/FONT]
[FONT="]You are required to write a program for BILLING SYSTEM of a virtual restaurant. The basic idea is that by entering the meal price, your billing system will calculate the Sales Tax, Total amount and Complement offer upon that meal. The program will process the billing of undetermined number for customers. At the end, program will show sum of total amount of all the customers. [/FONT]
[FONT="]Detailed Description[/FONT][FONT="]:[/FONT]
[FONT="]Billing System should work as under: [/FONT]
[FONT="]Meal Price [/FONT]
[FONT="]Sales Tax applicable [/FONT]
[FONT="]Less thanor equal to 1000[/FONT]
[FONT="]No sales Tax on it. [/FONT]
[FONT="]Greater than 1000 and less than or equal to 2000 [/FONT]
[FONT="]1% of meal price. [/FONT]
[FONT="]Greater than 2000[/FONT]
[FONT="]2% of meal price.[/FONT]
[FONT="]Total Amount [/FONT]
[FONT="]Sweet Dishes[/FONT]
[FONT="]Less than 1000[/FONT]
[FONT="]Candies[/FONT]
[FONT="]Greater than or equal to 1000 and less than 2000[/FONT]
[FONT="]Sweet Bread[/FONT]
[FONT="]Greater than or equal to 2000 and less than 3000[/FONT]
[FONT="]Pudding[/FONT]
[FONT="]Greater than or equal to 3000 and less than 4000[/FONT]
[FONT="]Cake[/FONT]
[FONT="]Other amounts [/FONT]
[FONT="]Trifle[/FONT]
[FONT="]Sample Output:[/FONT]
[FONT="]Problem Statement[/FONT][FONT="]: Virtual Restaurant [/FONT]
[FONT="]You are required to write a program for BILLING SYSTEM of a virtual restaurant. The basic idea is that by entering the meal price, your billing system will calculate the Sales Tax, Total amount and Complement offer upon that meal. The program will process the billing of undetermined number for customers. At the end, program will show sum of total amount of all the customers. [/FONT]
[FONT="]Detailed Description[/FONT][FONT="]:[/FONT]
[FONT="]Billing System should work as under: [/FONT]
- [FONT="]You are required to take meal price as input from user. [/FONT]
- [FONT="]After getting this input, program will calculate the sales tax on it as given below: [/FONT]
[FONT="]Meal Price [/FONT]
[FONT="]Sales Tax applicable [/FONT]
[FONT="]Less thanor equal to 1000[/FONT]
[FONT="]No sales Tax on it. [/FONT]
[FONT="]Greater than 1000 and less than or equal to 2000 [/FONT]
[FONT="]1% of meal price. [/FONT]
[FONT="]Greater than 2000[/FONT]
[FONT="]2% of meal price.[/FONT]
- [FONT="]After calculating the sales tax, program will calculate and display the total amount of the meal according to given formula: [/FONT]
- [FONT="]Now, program will prompt to serve the complement sweet dish to customer on the basis of total amount as given below:[/FONT]
[FONT="]Total Amount [/FONT]
[FONT="]Sweet Dishes[/FONT]
[FONT="]Less than 1000[/FONT]
[FONT="]Candies[/FONT]
[FONT="]Greater than or equal to 1000 and less than 2000[/FONT]
[FONT="]Sweet Bread[/FONT]
[FONT="]Greater than or equal to 2000 and less than 3000[/FONT]
[FONT="]Pudding[/FONT]
[FONT="]Greater than or equal to 3000 and less than 4000[/FONT]
[FONT="]Cake[/FONT]
[FONT="]Other amounts [/FONT]
[FONT="]Trifle[/FONT]
- [FONT="]After displaying the information of one customer, the program should ask the user if he/she again wants to process the bill of another customer. The user will be given two options. If user selects “Y or y”, the program will start the processing of another customer. If user selects “N or n”, the billing system exits.[/FONT]
- [FONT="]Before exiting from billing system, this program should display the total number of customers it processed, and sum of total amount of all the customers.[/FONT]
[FONT="]Sample Output:[/FONT]
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
