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
Explain the working of Array with Strings? A string is defined in C language as an array of characters. A null character (‘\0') is automatically added to the end of the charact

C Program for FUNCTION  OF COMPOUND INTEREST float ci(float,float,float); void main() {           float p=0,r=0,n=0,k=0;           clrscr();           printf("EN

I need to create a connection to FIFA Ultimate Team 14, I want to utilize C++ specifically for the reason that that is the language I have the most experience in. There are a co

Problem: (a) What is the main advantage to using a data file? (b) What is meant by opening a data file? How is this accomplished? Illustrate your answer clearly with a sui

Operation on list - c++ program: Write a program in c to Insert value on list and list iteration. typedef struct item *node_ptr; struct item {                   int e

program to find if a no . is prime or not


(a) client server or multithreaded client-server, where server will create pool of worker threads (say 5) to provide services to pool of clients (say 5 ).Server should be behaving

C Coding to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can be found

THEORY OF COMPUTER PROGRAMMING