//Linda's new cosmetic and clothing business plan.
//The plan is to make a net profit of approximately 10%
//after paying all expenses, which include merchandise cost,
//store rent, employees' salary, and electricity cost for the store.
//Needs a markup but would like to put the item on sale for 15% off.
//Need to enter the the total cost of the merchandise, the salary of the employees,
//the yearly rent, and the estimated electricity costs.
//The program has to out put how much the merchandise should be marked up
//so that Linda gets the 10% profit.
#include <iostream>
#include <cmath>
usingnamespace std;
int main()
{
double totalCost;
double salary;
double electric;
double rent;
int netprofit;
int itemdiscount;
netprofit = 0.010 * (totalCost + salary + electric + rent);
itemdiscount = 0.015 * totalCost;
cout << "Enter the total cost of the merchandise: " << endl;
cin >> totalCost;
cout << "Enter the salary of all employees: " << endl;
cin >> salary;
cout << "Enter the estimated electricity cost: " << endl;
cin >> electric;
cout << "Enter the yearly rent: " << endl;
cin >> rent;
cout << "The business net profit is " << (totalCost + salary + electric + rent) << endl;
cout << "The item discount should be " << itemdiscount << endl;
cout << "The merchandise should be marked up " << netprofit << endl;
system("Pause");
return 0;
}
#include <iostream>
int main()
{
// Need to enter the the total cost of the merchandise, the salary of the employees,
// the yearly rent, and the estimated electricity costs.
double total_cost_of_merchandise ;
cout << "Enter the total cost of the merchandise: " ;
cin >> total_cost_of_merchandise ;
double salary;
std::cout << "Enter the salary of all employees: " ;
std::cin >> salary;
double yearly_rent;
std::cout << "Enter the yearly rent: " ;
std::cin >> yearly_rent;
double electricity_cost ;
std::cout << "Enter the estimated electricity cost: " ;
std::cin >> electricity_cost ;
// we assume that valid non-negative values have been entered by the user
// all expenses, which include merchandise cost,
// store rent, employees' salary, and electricity cost for the store.
constdouble total_expenses = total_cost_of_merchandise + yearly_rent + salary + electricity_cost ;
// The plan is to make a nett profit of approximately 10%
constdouble nett_profit = total_expenses * 0.10 ;
constdouble sale_price_before_markup = total_expenses + nett_profit ;
// Needs a markup but would like to put the item on sale for 15% off.
constdouble marked_up_price = sale_price_before_markup * 100.0 / 85.0 ;
// TO DO: print out the results
}