Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 Introduction to Programming assignment no 1 spring october 25-2011
#1
[FONT=&quot]Assignment No. 01
Semester: Fall 2011[/FONT]

[FONT=&quot]CS201: Introduction to Programming[/FONT]



[FONT=&quot]Assignment [/FONT]

[FONT=&quot]Problem Statement[/FONT][FONT=&quot]: Virtual Restaurant [/FONT]

[FONT=&quot]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=&quot]Detailed Description[/FONT][FONT=&quot]:[/FONT]
[FONT=&quot]Billing System should work as under: [/FONT]

  • [FONT=&quot]You are required to take meal price as input from user. [/FONT]
  • [FONT=&quot]After getting this input, program will calculate the sales tax on it as given below: [/FONT]

[FONT=&quot]Meal Price [/FONT]
[FONT=&quot]Sales Tax applicable [/FONT]
[FONT=&quot]Less thanor equal to 1000[/FONT]
[FONT=&quot]No sales Tax on it. [/FONT]
[FONT=&quot]Greater than 1000 and less than or equal to 2000 [/FONT]
[FONT=&quot]1% of meal price. [/FONT]
[FONT=&quot]Greater than 2000[/FONT]
[FONT=&quot]2% of meal price.[/FONT]

  • [FONT=&quot]After calculating the sales tax, program will calculate and display the total amount of the meal according to given formula: [/FONT]
[FONT=&quot] Total Amount = Meal_Price + Sales_Tax [/FONT]
  • [FONT=&quot]Now, program will prompt to serve the complement sweet dish to customer on the basis of total amount as given below:[/FONT]


[FONT=&quot]Total Amount [/FONT]
[FONT=&quot]Sweet Dishes[/FONT]
[FONT=&quot]Less than 1000[/FONT]
[FONT=&quot]Candies[/FONT]
[FONT=&quot]Greater than or equal to 1000 and less than 2000[/FONT]
[FONT=&quot]Sweet Bread[/FONT]
[FONT=&quot]Greater than or equal to 2000 and less than 3000[/FONT]
[FONT=&quot]Pudding[/FONT]
[FONT=&quot]Greater than or equal to 3000 and less than 4000[/FONT]
[FONT=&quot]Cake[/FONT]
[FONT=&quot]Other amounts [/FONT]
[FONT=&quot]Trifle[/FONT]











  • [FONT=&quot]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=&quot]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=&quot]Sample Output:[/FONT]





Attached Files
.zip   Fall 2011_CS201_1.zip (Size: 194.12 KB / Downloads: 269)

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#2
Plz is ka solution send kr den. plz plz
Reply
#3
Alah help those who help themselves :p
Reply
#4
Abhi tu kafi din han is main g.
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#5
I upload soon solution file plz w8t
Reply
#6
Great lets see who is gona work on it first.
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#7
Code:
CS201 Assignment 1 Solution Fall 2011 #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout"***Virtual Resturent***\n\n"; int price; cout "Enter the price of the meal:"; cin >> price; float saleTax; if(price<=100) { saleTax = 0.0 * price; } else if(price <= 200) { saleTax = 0.1 * price; } else { saleTax = 0.2 * price; } cout"\nPrice of Meal:\t"price; cout"\nSales Tax:\t"saleTax; cout"\n....................."; float totalAmount; totalAmount = price + saleTax; cout "\nTotal Amount\t" totalAmount; if (totalAmount<1000) { cout"\n\nThis customer should be served with Candies"; } else if(totalAmount>=1000&&totalAmount<2000) { cout"\n\nThis customer should be served with SweetBread"; } else if(totalAmount>=2000&&totalAmount<3000) { cout"\n\nThis customer should be served with Pudding"; } else if(totalAmount>=3000&&totalAmount<4000) { cout"\n\nThis customer should be served with Cake"; } else { cout"\n\nThis customer should be served with Trifle"; } cout"\n\nDo you want to process another customer?"; char letter; cout"\n\nEnter 'Y' for Yes or 'N' to exit>:"; cin>>letter; switch(letter) system("PAUSE"); return EXIT_SUCCESS; }

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#8
Please do post your comments in this assignment by
/* Comments */
or
// Comments
It will be good.
regards
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#9
iss ka format .cpp hona chahye .doc nahi warna accept nahi ho gi
Reply
#10
thanks for this assignments
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,319 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,904 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,925 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,161 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,237 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,962 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,660 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,793 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,695 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,794 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)