I need help to create C++ program for this question
Input the price of a product and the tax code (R or L).If the code is ‘R’ the tax rate is 8% and the rate is
12% for ‘L’. Calculate the total price and tax paid for the product. Continue processing until 0 is
encountered for price. Do error checks for all input data. Produce a summary table for all products.
Use the following input from your data file.
Sample input
100.25 R
350.5 L
450.3 L
500.5 L
-50 R
50.3 R
255.5 G
0
biancaW
0
Light Poster
Recommended Answers
Jump to PostI am guessing from what you have posted that you have never successfully run a C++ program at all. I say this because of the large amount of stuff in your program that is simply not part of C++.
It is one thing to show someone a program and …
Jump to PostHow about getting your program to compile and execute, then posting the version you executed along with its output, and explaining what it's doing that you don't understand?
If you have never written a C++ program that has actually compiled successfully, then you shouldn't be trying to write one …
All 7 Replies
arkoenig
340
Practically a Master Poster
biancaW
0
Light Poster
arkoenig
340
Practically a Master Poster
biancaW
0
Light Poster
adarshcu
9
Junior Poster
biancaW
0
Light Poster
arkoenig
340
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.