dimanche 19 juin 2016

Write a C program to calculate the monthly telecom bill according to the conditions given below


*In this particular telecom package, free usage of facilities are limited to 1,000 minutes per month. If the user has obtained telephone calls less than or equal to 1000 minutes of usage to any network, user has to pay only the rental and tax. *If the user has obtained telephone calls more than 1000 minutes, charges are added to the balance minutes *Charges are less for the same network and higher for any other network. Different networks can be identified by first 3 digits of the outgoing telephone number *Incoming telephone charges are free for all networks. *Write a program to save bill number, telephone number, month, customer first name, last name and amount to be paid per month. Save the details in a random access file. Use ‘struct’ to define a record which contain the bill number (0 to 1000), telephone number, month, customer first name, last name and amount to be paid. Telephone number should be of character data type with length 10 characters. Use string functions for selecting the first 3 digits of the telephone number. Clearly state your assumptions *You can decide the normal telephone charge and the higher charge for usage. name, last name and amount to paid per month.


Aucun commentaire:

Enregistrer un commentaire