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

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

ID: 3915162 • Letter: D

Question

Description 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 (double) and the percentage of the marked-up price (double) 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 (you will have a constant that holds 7.25%), the amount taxed, and then the final amount of the item. (The final price is the store's selling price plus tax) Specifications In order to get full credit, you will need to have/perform in your code . Variable with correct types and meaningful names Comments in your code for variables and for blocks of code that perform input, output, and calculations . Use iomanip to format all numbers to two decimal places and nicely aligned e Program must compile and run with any input Sample Output Jimis-MacBook -Pro : Asst04 VaskoDaGamer g++ Asst04.cpp Jimis-MacBook -Pro:Asst04 VaskoDaGamer$ ./a. out Please enter item 's sale price: 29.99 Please enter mark up percentage 12.99 29.99 12. 99% 33.89 7?25% 2.46 36.34 Mark-up percentage. .. Jimis-MacBook-Pro: Asst04 VaskoDaGamer? -/a.out Please enter item 's sale price: 24.95

Explanation / Answer

Write below mension code into your CPP editor save it by name- LastName_FirstName_Asst04.cpp

Then first comple it after compilation run it you will get the result

#include<bits/stdc++.h>

#include<iostream>

#define SALESTAX 7.25 //for fixed sales tax

using namespace std;

int main()

{

double original_price;

double percentage;

double selling_price;

double sales_tax;

double amount_tax;

double final_price;

cout<<"Please enter item's sales price: ";

cin>>original_price;

cout<<"Please enter mark up percentage: ";

cin>>percentage;

/* for precision fixed up to two decimal point */

std::cout << std::setprecision(2) << std::fixed;

selling_price=original_price+(original_price*percentage)/100.0;

cout<<" Original price............$ "<<original_price;

cout<<" Mark-up percentage........ "<<percentage<<"%";

cout<<" Selling Price.............$ "<<selling_price;

cout<<" Sales tax................. "<<SALESTAX<<"%";

amount_tax=selling_price*SALESTAX/100.0;

cout<<" Amount taxed..............$ "<<amount_tax;

final_price=selling_price+amount_tax;

cout<<" Final price...............$ "<<final_price;

return 0;

}