programming

posted by .

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.

  • programming -

    No one will write this program for you. You need to write it yourself and post it here for critique.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. 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?
  2. 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.
  3. math

    lisa made a long-distance 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
  4. 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.
  5. Math

    The phone company charges a flat rate of $2.50 plus and additional $0.50 each minute for a long-distance phone call. Write an equation to represent the total cost of making a long-distance phone call.
  6. algebra

    Ty uses the function g(x)=0.5+0.2(x-1) 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 10-minute …
  7. 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.
  8. 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?
  9. algebra

    long-distance 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 …
  10. algebra

    long-distance 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 …

More Similar Questions