Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

To make a profit, a local store marks up the prices of its items by a certain pe

ID: 3846729 • Letter: T

Question

To make a profit, a local store marks up the prices of its items by a certain percentage. Write a C++ program that reads the original price of the item sold, the percentage of the marked-up price, and the sales tax rate. The program then outputs the original price of the item, the percentage of the mark-up, the store’s selling price of the item, the sales tax rate, the sales tax, and the final price of the item. (The final price of the item is the selling price plus the sales tax.)

please have:

source code with

The name of program as a comment at the top of the file

IPO chart incorporated as comments after the name of the file

A test plan or a screen shot of your test results

Explanation / Answer

#include

<iostream>

using namespace std;

int main()

{

double originalPriceIs, salesTaxRateIs, totalPriceIs, markupPercentageIs, salesTaxPriceIs, markupPriceIs;

cout << "Please enter original price: $";

cin >> originalPriceIs;

cout << "Please enter the markup percent: ";

cin >> markupPercentageIs;

cout << "Please enter the sale tax percent: ";

cin >> salesTaxRateIs;

markupPriceIs = originalPriceIs * (markupPercentageIs / 100);

salesTaxPriceIs = originalPriceIs * (salesTaxRateIs / 100);

totalPriceIs = originalPriceIs + salesTaxPriceIs + markupPriceIs;

cout << "Original Price is: $" << originalPriceIs << endl;

cout << "Sales Tax is: $" << salesTaxPriceIs << endl;

cout << "Mark-Up is: $" << markupPriceIs << endl;

cout << "Total Price is: $" << totalPriceIs << endl;

return 0;

}

#include

<iostream>

using namespace std;

int main()

{

double originalPriceIs, salesTaxRateIs, totalPriceIs, markupPercentageIs, salesTaxPriceIs, markupPriceIs;

cout << "Please enter original price: $";

cin >> originalPriceIs;

cout << "Please enter the markup percent: ";

cin >> markupPercentageIs;

cout << "Please enter the sale tax percent: ";

cin >> salesTaxRateIs;

markupPriceIs = originalPriceIs * (markupPercentageIs / 100);

salesTaxPriceIs = originalPriceIs * (salesTaxRateIs / 100);

totalPriceIs = originalPriceIs + salesTaxPriceIs + markupPriceIs;

cout << "Original Price is: $" << originalPriceIs << endl;

cout << "Sales Tax is: $" << salesTaxPriceIs << endl;

cout << "Mark-Up is: $" << markupPriceIs << endl;

cout << "Total Price is: $" << totalPriceIs << endl;

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote