Answer to Question #313528 in C++ for jane

Question #313528

A New Telephone Company has the following rate structure for long distance calls:

● The regular rate for a call is $0.10 per minute. (10 marks)

● Any call started at or after 6:00P.M. (1800 hours) but before 8:00A.M. (0800 hours) is

discounted 50 percent.

● Any call longer than 60 minutes receives a 15 percent discount on its cost (after any other

discount is subtracted).

● All calls are subject to a 4 percent federal tax on their final cost.

Write a program that reads the start time for a call based on a 24-hour clock and the length of the call. The gross cost (before any discounts or tax) should be printed, followed by the net cost (after discounts are deducted and tax is added). Print instructions to the user and compute the net cost


1
Expert's answer
2022-03-17T17:09:47-0400

Here is my program:

int main()
{
	double rate = 0.10;
	int total;
	string date;
	if (date == "6:00PM" || date != "8:00 AM")
	{
		rate == 0.05;
	}
}

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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog