Summary in C++ Linda is starting a new cosmetic and clothing business and would
ID: 3750132 • Letter: S
Question
Summary in C++
Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include merchandise cost, store rent, employees’ salary, and electricity cost for the store.
She would like to know how much the merchandise should be marked up so that after paying all the expenses at the end of the year she gets approximately 10% net profit on the merchandise cost.
Note that after marking up the price of an item she would like to put the item on 15% sale.
Instructions
Write a program that prompts Linda to enter:
The total cost of the merchandise
The salary of the employees (including her own salary)
The yearly rent
The estimated electricity cost.
The program then outputs how much the merchandise should be marked up (as a percentage) so that Linda gets the desired profit.
Explanation / Answer
//C++ program
#include <iostream>
using namespace std;
int main(){
double M,S,E,R,Expense,profit,Earning,M_up,percent_up;
cout<<"Enter merchandise cost : ";
cin>>M;
cout<<"Enter employees’ salary : ";
cin>>S;
cout<<"Enter electricity cost : ";
cin>>E;
cout<<"Enter store Rent : ";
cin>>R;
Expense = M+S+E+R;
profit= M*(0.1);
Earning = (Expense + profit)/(0.85);
M_up=Earning - M;
percent_up=(M_up/M)*100;
cout<<"merchandise cost marked up (in %) : "<<percent_up<<" ";
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.