(Solved) : Initial Template Given Please Include Function Work Thanks Int Main Calculatecost 1 2 Cout Q29470809 . . .

The initial template is given, please include thefunction below in your work, thanks!
int main()
{
calculateCost(1,2);
cout << “Hello World!” << endl;
}
/**
* @brief DESCRIPTION
*
* @param a is (my answer—> I assume a is the lengthof the call after 8 and before 18:00, for example if the call isfrom 17:30~19:00, then a= 17:30~18:00, but im not sure if it’scorrect or not)
* @param b is(my answer—> I assume b is the lengthof the call before 8 and after 18:00, for example if the call isfrom 17:30~19:00, then a= 18:00~19:00, but im not sure if it’scorrect or not)
* @return void
*
*/
void calculateCost(int a, int b)
{
double cost = 0;
cost = a + b;
cout << “cost ” << cost << endl;
}
Show transcribed image text
Write a C++ program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: Any call started between 8:00 am and 6:00 pm, Monday through Friday, is billed at a rate of S0.40 per minute a) b) Any call starting before 8:00 am or after 6:00 pm, Monday through Friday, is charged at a rate of $0.25 per minute. Any call started on a Saturday or Sunday is charged at a rate of $0.15 per minute. c) The input will consist of the day of the week, the time the call started, and the length of the call in minutes. The output will be the cost of the call. The time is to be input in 24-hour notation, so the time 1:30 pm is input as 13:30 The day of the week will be read as one of the following pairs of character values, which are stored in two variables of tvpe char; Mo Tu We Th Fr Sa Su Be sure to allow the user to use either uppercase or lowercase letters or a combination of the two. The number of minutes will be input as a value of type int. (You can assume that the user rounds the input to a whole number of minutes.) Your program should include a loop that lets the user repeat this calculation until the user says she or he is done. Show transcribed image text
Expert Answer
Answer to Initial Template Given Please Include Function Work Thanks Int Main Calculatecost 1 2 Cout Q29470809 . . .
OR