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
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.