Write a program that computes the cost of a long distance ca, C/C++ Programming

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.

Posted Date: 3/3/2013 8:54:40 AM | Location : Pakistan







Related Discussions:- Write a program that computes the cost of a long distance ca, Assignment Help, Ask Question on Write a program that computes the cost of a long distance ca, Get Answer, Expert's Help, Write a program that computes the cost of a long distance ca Discussions

Write discussion on Write a program that computes the cost of a long distance ca
Your posts are moderated
Related Questions

Write in a file: void main() { int i,j,k,l,list[1000]; FILE *fp; char any[8];   cout cin >> any;   fp = fopen(any,"wb");     for(j=0;j     {

write a C++ program that performs the following tasks 1. prompts the user to enter two numbers 2. displays the divisors of each number and store the divisors of number 1 in A and t

need to create c++ classes to store all pascal types in compiler design.

I can''t figure out how to stop the programming from hitting for the player even when they type in stand.

how to declare multi dimensional array

Within C we access external devices by means of a pointer i.e. address. The address could point to any memory mapped device i.e. Ram, Rom, Duart, Disk drives etc. Therefore there i

a program to determine whether a number is an odd or even using recursive function

A constructor that accepts one argument of a dissimilar type.

write c program to do the following : -fill 2 dimensional array (square matrix array with size=4). -ask the user to enter any integer number and add this number to the diagonals -o