Sponsored Links


Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: CS201 Introduction to Programming assignment no 1 spring october 25-2011

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    NEW CS201 Introduction to Programming assignment no 1 spring october 25-2011

    Sponsored Links1


    Assignment No. 01
    Semester: Fall 2011

    CS201: Introduction to Programming



    Assignment

    Problem Statement: Virtual Restaurant

    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.

    Detailed Description:
    Billing System should work as under:


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


    Meal Price
    Sales Tax applicable
    Less thanor equal to 1000
    No sales Tax on it.
    Greater than 1000 and less than or equal to 2000
    1% of meal price.
    Greater than 2000
    2% of meal price.


    • After calculating the sales tax, program will calculate and display the total amount of the meal according to given formula:

    Total Amount = Meal_Price + Sales_Tax

    • Now, program will prompt to serve the complement sweet dish to customer on the basis of total amount as given below:



    Total Amount
    Sweet Dishes
    Less than 1000
    Candies
    Greater than or equal to 1000 and less than 2000
    Sweet Bread
    Greater than or equal to 2000 and less than 3000
    Pudding
    Greater than or equal to 3000 and less than 4000
    Cake
    Other amounts
    Trifle












    • 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.



    • 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.



    Sample Output:





    Sponsored Links
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    17
    Plz is ka solution send kr den. plz plz

  3. #3
    Alah help those who help themselves

  4. #4
    Administrator
    Join Date
    Oct 2011
    Posts
    468
    Abhi tu kafi din han is main g.
    03009520262
    Rabeel Website

  5. #5
    gm mughal
    Guest
    I upload soon solution file plz w8t

  6. #6
    Administrator
    Join Date
    Oct 2011
    Posts
    468
    Great lets see who is gona work on it first.
    03009520262
    Rabeel Website

  7. #7
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    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;
    }

  8. #8
    Administrator
    Join Date
    Oct 2011
    Posts
    468
    Please do post your comments in this assignment by
    /* Comments */
    or
    // Comments
    It will be good.
    regards
    03009520262
    Rabeel Website

  9. #9
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    iss ka format .cpp hona chahye .doc nahi warna accept nahi ho gi

  10. #10
    Junior Member
    Join Date
    Oct 2011
    Posts
    2
    thanks for this assignments

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CS201-Introduction to Programming Assignment No.2 Spring semester 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 07-09-2014, 04:14 PM
  2. Replies: 5
    Last Post: 05-17-2013, 02:55 AM
  3. Replies: 12
    Last Post: 12-27-2011, 05:44 PM
  4. Replies: 2
    Last Post: 11-20-2010, 08:25 PM
  5. Replies: 2
    Last Post: 05-07-2010, 05:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft