CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: C++ question.

  1. #1
    Join Date
    Jun 2007
    Posts
    6

    C++ question.

    hello there.. urm.. i need some help on this question, please take a look:
    write a program to help a local bookstore automate its billing system. the program should do the following:

    display menu
    allow customor to select/buy more than one book
    calculate and print bill..

    NO title price
    1. lord of the ring rm 159.90
    2. harry potter rm 80.90
    3. superman rm 60.00

    requirements:
    you are to use selection and repitition structues in your program.
    you should give a 10% discount if the customer is a member of the bookstore.

    sample output:

    WELCOME TO ABC BOOKSTORE.
    No title price
    1. lord of the ring rm 159.90
    2. harry potter rm 80.90
    3. superman rm 60.00

    are you a member(y/n)? y

    please enter your selcetion

    item no: 1
    quantity number:1

    do you want to continue? y

    itemm no:2
    quantity :1
    do you want to continue? n

    1. 159.90*1
    2. 80.90*1

    total: rm 240.80
    discount: rm 24.08

    total: rm 216.72


    this is my question.. if any1 can help me guide through the question.. it would be very helpful..and appreciative.. please people.. help your bro out..
    im runnin windows Xp...SP2.... accer aspire 5050 laptop.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: C++ question.

    Can you help me with my homework?

    Regards,

    Paul McKenzie

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: C++ question.

    Quote Originally Posted by Vila
    Wow, man. When I looked this post I couldn't resist not to write this program for you.

    I hope it will help.

    Here are two attachments:

    1.Source code from C++ 8.0 and
    2.EXE file of that program. (TIP: change .cpp in .exe )

    So 'bro' will you say 'Thank you' or no???
    Dude, we don't do homework for people here. Please delete your post.

  4. #4
    Join Date
    Jul 2007
    Posts
    20

    Resolved Re: delete

    OK.

    I am sorry, OK?

  5. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: delete

    Quote Originally Posted by Vila
    OK.

    I am sorry, OK?
    No problem. You may want to read the link Paul provided above.

  6. #6
    Join Date
    Jul 2007
    Posts
    20

    Talking Re:

    I just read it.
    I will respect forum rules in future.
    Thanks for telling me that.

  7. #7
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re:

    Quote Originally Posted by Vila
    I just read it.
    I will respect forum rules in future.
    Thanks for telling me that.
    It's not so much a rule as we want to help people. It's much more productive to help them actually understand what they're doing than just giving them something to copy and paste.

    If the OP wants to take a stab at it and ask specific questions, many people here will be happy to help. An effort needs to be demonstrated first though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured