Sponsored Links


+ Reply to Thread
Results 1 to 1 of 1
dqw
  1. #1
    Super Moderator Vuhelper's Avatar Users Flag!
    Join Date
    Apr 2011
    Posts
    24,363
    Thanks
    15
    Thanked 118 Times in 107 Posts

    18 CS201 Introduction to Programming Assignment No. 05 Semester Spring June 2012

    Sponsored Links
    Assignment No. 05
    Semester: Spring 2012
    CS201 Introduction to Programming



    Problem Statement: Customer Bill Information

    Write a program that takes customer’s information from user i.e. name, ID and spending and displays the same customer information plus total bill on the screen. You will use the same Customer class implemented in Assignment#3. You need to overload stream insertion << and stream extraction >> operators for the Customer class.

    Detailed Description:

     Use the same Customer class you implemented in Assignment#3.
     This time you don’t need the friend function for calculation of total bill according to spending.
     You can modify the class (add or delete some functions) as per program requirement.
     You will overload extraction operator >> for getting input for an object of Customer class.
     You will also overload insertion operator << for displaying the customer information on screen.
     On calling extraction operator in main() e.g. cin>>obj where obj is an object of Customer class, information about customer name, ID and spending should be taken from the user.
     Take a look at the sample output for better understanding.











     On calling insertion operator in main() e.g. cout<<obj, the output in the following format should be displayed.





     You must use the formatting manipulators setw() and setfill() for formatting the text as shown in the output.
     All the formatting of text should be implemented inside overloaded function for extraction operator <<
     The main() function of your solution should contain only these instructions

    Customer obj;
    cin >> obj;
    cout << obj;
    system(“pause”);
    Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Replies: 0
    Last Post: 06-21-2012, 11:26 AM
  2. Replies: 0
    Last Post: 06-09-2012, 12:56 AM
  3. Replies: 4
    Last Post: 04-14-2012, 04:30 PM
  4. Replies: 63
    Last Post: 01-11-2011, 09:52 PM
  5. Replies: 2
    Last Post: 11-20-2010, 03:25 PM

Visitors found this page by searching for:

cs201 - introduction to programming assignment 2 solution

cs201 introduction programming assignment exams

SEO Blog

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.
Pknews |Vugurus|Urducell|Online Education|Indian Dramas