60 477
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #16820 in C++ for Tousif

Question #16820
Rajni 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.
Write a program that prompts Rajni to enter the total cost of the merchandise, the salary of the employees (including her own salary), the yearly rent, and the estimated electricity cost.
The program then outputs how much the merchandise should be marked up so that Rajni gets the desired profit.
Expert's answer
#include <iostream>

#include <stdlib.h>




using namespace std;




int main(int argc, char *argv[])

{

cout<<"enter cost of the product"<<endl;

int s;

cin>>s;




cout<<"enter electricity cost"<<endl;

int e;

cin>>e;




cout<<"enter employees’ salary(including Rajni salary)"<<endl;

int zp;

cin>>zp;




cout<<"how much cost store rent "<<endl;

int o;

cin>>o;




double N;

N=(e+zp+o)/(0.05*s);

cout<<"amount of product="<<N<<endl;






system("PAUSE");

return 0;

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions