Question: Write a C + + program for the following task: Two phone numbers and the duration of the call in minutes are read from standard

Write a C++ program for the following task: Two phone numbers and the duration of the call in minutes are read from standard input. Calculate the cost of the call, knowing that the first 30 minutes cost 3 dollars/min, and after those 30 minutes, the price per minute is 2 dollars. Additionally, if both phone numbers are from the same operator, a 30% discount should be applied.Operator1 uses (071,072,073)Operator2 uses (074,075,076)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!