An integer representing the day the call was made


You were hired as a programmer by TNP (Telepono ng Pilipino) a phone company. TNP employs a metering scheme in computing the bill. The metering scheme is as follows: Calls made on a weekday between 6:00 AM to 6:00 PM are charged at 2.50 pesos per minute. Charges made at other times during a weekday are charged a discounted 2.00 pesos per minutes. Calls made anytime on a weekend are charged a weekend rate of 1.50 per minute. Your job is to write a program that will ask the user to enter the following information:
a. an integer representing the day the call was made
b. an integer representing the time (in 24 hours format ) the call started.
c. an integer representing the length of time or duration of the calls in minutes (assume that all calls are rounded to next minute i.e. call lasting 2 minutes and 35 seconds is billed as 3 minutes call.)
The rate applied depends on the day the call was made and on the time the call was started (not when it ended). Based on the information entered, the program should print the bill corresponding to the call.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: An integer representing the day the call was made
Reference No:- TGS0100668

Expected delivery within 24 Hours