Question
Create a program in C++ that simulates a simple cash register application given the following requirements: All items are taxable at a rate of 7%.
Create a program in C++ that simulates a simple cash register application given the following requirements:
All items are taxable at a rate of 7%. Use a constant variable for the tax rate.
Item amounts will be held in one or more variables after being input.
Item tax amounts will be held in one or more variables after being calculated.
Item subtotals will be held in one or more variables after being calculated.
Items total, tax total, and total due will each be held internally in their own respective variable.
One loop is required for inputting all item amounts. During each iteration of the loop a different item amount will be input. Input is not allowed at any other time.
Required program input:
The program inputs five floating point numbers that represent purchased items.
The program will input the numbers one at a time.
The program should produce the following output:
The program will output the items, item taxes, item subtotals, items total, tax total, and total due.
The output will be formatted in columns with a header above the fields as shown below.
Output Example
Receipt for Goods
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started