Question: Write the Algorithm (C++) The cost of a telephone call is calculated as follows depending on the number of minutes: All calls have a connection

Write the Algorithm (C++)
The cost of a telephone call is calculated as follows depending on the number of minutes:
All calls have a connection fee of 1.5 dirhams.
First 10 minutes will cost 1 dirham per minute.
Any additional minute will cost 0.8 dirham per minute.
For example, if minutes are 4 then the cost is 5.5. If minutes are 10 then the cost is 11.5. If minutes are 15 then the cost is 15.5. Finally, if minutes are 20 then the cost is 19.5.
Write the algorithm to solve a problem where you input the number of minutes and calculate and output the call cost.
please provide correct solution asap

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 Databases Questions!