Sunday
April 20, 2014

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

Programming and Design - Draw the hierarchy chart and design the logic for a ...
Programming - Read two numbers from the keyboard Display the menu options as ...
c++ programming - Solve the following problem. Apply all the steps i.e ...
event driven programming - 8. Write a visual basic program that accepts basic ...
Programming - Iím using VB 2008. I need to write a simple program that ...
Programming - Write a pseudocode program that asks the user for an integer ...
Programming - Write a program that would calculate and display the results for ...
programming - I am having trouble writing this program for java. can anybody ...
programming - Draw a flowchart or write the pseudocode for an application that ...
Computer Science - Would like to know if this looks right Write a program that ...

Search
Members