Saturday
May 25, 2013

Homework Help: programming

Posted by farh on Sunday, March 3, 2013 at 5:04am.

Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules.
a.A call made between 8:00 AM and 6:00 PM is billed at a rate of 6 rupees per minute.
b.A call made before 8:00 AM or after 6:00 PM is charged at a rate of 3.75 rupees.
The input to the program will consist of the time the call started, and the length of call in minutes. The output will be the cost of call. The time is to be input in 24-hours notation, so the time 1:30 PM is input as 13:30. The time will be input using two variables of type int, one used for hour and other used for minutes. The number of the minutes for length of the call will also be input as a value of type int.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

math - lisa made a long-distance telephone call to her friend Jane. the cost was...
math - When making a telephone call using a calling card, a call lasting 3 ...
math - The cost of a long-distance telephone call is $.36 for the first minute ...
ALGEBRA - A phone company charges $0.40 per long distance call plus $0.20 per ...
Algebra - Word problem: When making a phone call using calling card a call ...
Math - Q.250 cm3(cube) of the liquid weighs 125 grams. find the weight of 1000 ...
Algebra - When making a phone call using calling card a call lasting 3 minutes ...
MAT 116 – Algebra 1A - A long-distance telephone plan costs $2.00 a month...
algebra - The cost for a long-distance telephone call is $0.36 for the first ...
math - A computer technician charges $40 for a house call and $38 per hour. The ...

For Further Reading

Search
Members
Community