programming
posted by farh .
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 24hours 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.

programming 
Dr. Jane
No one will write this program for you. You need to write it yourself and post it here for critique.
Respond to this Question
Similar Questions

math
100 people set up a phone call system so that the initial contact person call three persons, each of whom calla three persons,and so on until all have been contacted. The maximum people who do not need to make calls is? 
Math
Q.250 cm3(cube) of the liquid weighs 125 grams. find the weight of 1000 cm3(cube) of the liquid. Q.The cost of a long distance call lasting 20 seconds was 23.40 at this rate what was the cost of a call lasting 6 minutes 30 seconds. 
math
lisa made a longdistance telephone call to her friend Jane. the cost was $.42 for the fist minute and $.19 for each additional minute. what was the total length of the call if it cost $2.89 
Math
A international phone call cost a fixed amount for the first minute and a certain rate per each additional minute. If a 7 minute phone call cost $10 and a $4 call cost &6.40, find the fixed charge and the rate per each additional minute. 
Math
The phone company charges a flat rate of $2.50 plus and additional $0.50 each minute for a longdistance phone call. Write an equation to represent the total cost of making a longdistance phone call. 
algebra
Ty uses the function g(x)=0.5+0.2(x1) to calculate the cost in dollars of using a calling card to make a long distance call lasting x minutes.The variable x must be a hole number.graph the function then determine the cost of a 10minute … 
college algebra
Using a phone card to make a long distance call costs a flat fee of $0.80 plus $0.33 per minute starting with the first minute. Write a function for the cost of a long distance call C(x) in terms of x minutes for this situation. 
algebra
a long distance call costs .50 for the first minute, and then .9 for each additional minute. If the call lasted 10 minutes, how much did the call cost in cents? 
algebra
longdistance calls from new york to harare are priced at 85 cents/min off peak and $1.20/min at peak times. a_ draw, on the same axes conversion graphs for the two different rates. b_ from your graph estimate the cost of an 8 minute … 
algebra
longdistance calls from New York to Harare are priced at 85 cents/min off peak and $1.20/min at peak times. a_ draw, on the same exes, conversion graphs for the two different rates. b_ from your graph estimate the cost of an 8 minute …