| | |
can anyone help me solving this program ??plz
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
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
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
Yes but you forgot to post the code whatever you have attempted.
![]() |
Similar Threads
- Sudoku Source Code (C++)
- Help With syntax (Visual Basic 4 / 5 / 6)
- Error Running Web Application (ASP.NET)
- Crazy Leak...plz help (C++)
- plz help me solving below programs (C)
- Cubic equation (C++)
Other Threads in the C++ Forum
- Previous Thread: File I/O input being misread?
- Next Thread: Cast double to const char*
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






