Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Write a C++ program which accepts from the keyboard a tax rate as a percentage and the price of six items. The program is

image text in transcribed

Instructions Write a C++ program which accepts from the keyboard a tax rate as a percentage and the price of six items. The program is to calculate: 1. The total price of the 6 items 2. The amount of tax to be paid on those six items and 3. The amount that the customer must pay The program should then print the amount to be paid by the customer. This output must have a meaningful label. .045 A sample run of a program solution. Please enter the tax rate as a percentage, for example .045 for 4.5% Please enter the price of the first item: 2.45 Please enter the price of the second item: 10.00 Please enter the price of the third item: 1.00 Please enter the price of the fourth item: 7.50 Please enter the price of the fifth item: 2.99 Please enter the price of the sixth item: 20.99 The cost before taxes is $44.93 The tax to be paid is $ 2.02185 The total amount due to the cashier is: $46.95185

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

2. Provide recommendations for effective on-the-job training.

Answered: 1 week ago