Question: the algorithm only Write the Algorithm The cost of a telephone call is calculated as follows depending on the number of minutes: All calls have
Write the Algorithm 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. 1. First 10 minutes will cost 1 dirham per minute. 2. 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. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BIU $ Paragraph Arial 10pt DEA I. .. Input: 1) Get the number of minutes process. 2) calculate the minutes less than equal 4 then add cost 5.5 dirhams the minutes less than equal 10 then add cost 11.5 dirhams the minutes lossthan equal 10 then add cost 11.5 dirhams Output 3) print the cost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
