can anyone help me solving this program ??plz

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 2
Reputation: drgenius is an unknown quantity at this point 
Solved Threads: 0
drgenius drgenius is offline Offline
Newbie Poster

can anyone help me solving this program ??plz

 
0
  #1
Nov 12th, 2008
You are the owner of a sportswear store that sells tennis shoes of three different brands. The shoes have different prices, as follows:
1. Nike: $100.95
2. Sketchers: $125.5
3. Adidas: $92.45


Write a program that does the following:

• Ask the user to enter a product number (1 3: 1 for Nike, 2 for Sketchers and 3 for Adidas)
• Ask the user to enter the quantity a given customer would like to purchase.
• Determine and print the amount to be paid by the customer for his request
• If the product number is not between 1 and 3, print an error message indicating so, and re-enter another product number.
• Repeat steps 1 and 4 until a value of 0 for the product number is entered.
• Hint: Use a switch statement.


Finally your program should print the following:

1. The Total amount of all products sold
2. The Total number and amount sold per product
3. The most required product with its percentage
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,857
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: can anyone help me solving this program ??plz

 
0
  #2
Nov 12th, 2008
Yes but you forgot to post the code whatever you have attempted.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: drgenius is an unknown quantity at this point 
Solved Threads: 0
drgenius drgenius is offline Offline
Newbie Poster

Re: can anyone help me solving this program ??plz

 
0
  #3
Nov 12th, 2008
we are going to use switch, while loop and if/else..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC