Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c++ prog. Problem S: The cost of a phone call is calculated is follows: 1) The connection cost is 1.5 dirhams. First 5 minutes

In c++ prog. image text in transcribed
Problem S: The cost of a phone call is calculated is follows: 1) The connection cost is 1.5 dirhams. First 5 minutes will cost 3 dirhams. 2) 3) Next 5 minutes will cost 1.2 dirhams per minute. Any additional minute will cost 0.8 dirhams per minute. 4) Input the total number of minutes for the phone call, and calculate the cost of the phone call. Sample input/ output: Enter the number of minutes: 2 Call cost: 4.5 Enter the number of minutes: 5 Call cost: 4.5 Enter the number of minutes: 8 Call cost: 8.1 Enter the number of minutes: 10 Call cost: 10.5 Enter the number of minutes: 15 Call cost: 14.5 Enter the number of minutes: 25 Call cost: 22.5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

How do you evaluate your own global mindset levels?

Answered: 1 week ago