Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions To make a profit, a local store marks up the prices of its items by a certain percentage. Write a C + + program
Instructions
To make a profit, a local store marks up the prices of its items by a certain percentage.
Write a program that reads:
The original price of the item sold
The percentage of the markedup price
The sales tax rate.
The program then outputs:
The original price of the item
The percentage of the markup
The store's selling price of the item
The sales tax rate
The sales tax
The final price of the item.
The final price of the item is the selling price plus the sales tax.
Since your program handles currency, make sure to use a data type that can store decimals.
X Task #: Correct output calculated and displayed
Test Feedback:
Status: FAILED!
Check:
Test: Test case
Reason: Unable to find in the program's output.
Percentage of the markup:
Store's selling price of the item: $
Sales tax rate:
Sales tax: $
Final price of the item: $
Error : AssertionError Unable to find a number close enough to in the program's output.
Timestamp: ::
Status: FAILED!
Check:
Test: Test case
Reason: Unable to find in the program's output.
Percentage of the markup:
Store's selling price of the item: $
Sales tax rate:
Sales tax: $
Final price of the item: $
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