Good evening! the error named"Id return exit status" keeps on showing. I don't know why
SOURCE CODE:
#include <iostream>
using namespace std;
const double LOW_MARKUP=0.05;
const double HIGH_MARKUP=0.10;
const int THRESHOLD=7;
void introduction();
void get_input(double& cost, int& turnover);
double price(double cost, int turnover);
void give_output(double cost, int turnover, double price);
int main()
{
double wholesale_cost, retail_price;
int shelf_time;
introduction();
get_input(wholesale_cost, shelf_time);
retail_price=price(wholesale_cost, shelf_time);
give_output(wholesale_cost, shelf_time, retail_price);
return 0;
}
void introduction()
{
using namespace std;
cout<<"This programdetrmines retail price for \n"
<<" an item at a Quick-Shop supermarket store. \n ";
}
void get_input(double& cost, int turnover)
{
using namespace std;
cout<<"Enter wholesale cost of an item: $";
cin>>cost;
cout<<"Enter the expected number of days until sold: ";
}
void get_output(double cost, int turnover, double price)
{
using namespace std;
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);
cout<<"Wholesale cost= $"<<cost<<endl
<<"Expected time until sold= "
<<turnover<<"days"<<endl
<<"Retail price=$"<<price<<endl;
}
double price(double cost, int turnover)
{
if(turnover<=THRESHOLD)
return(cost+(LOW_MARKUP * cost));
else
return(cost+(HIGH_MARKUP * cost));
}