The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
SPRIZONis a well-known telephone service company that provides its customers with affordable call rates for mobile, landline and international calls. You have been hired by the company’s revenue department to create a program that can easily capture a customer’s call details and generate a summary of charges. These charges will be billed to the customer. The following information is provided to you.
A sample of customer account information is provided in the text file DataSample.txt.A customer is eligible to make any of the following types of calls. The rates are listed.
Â
Â
|
Call Type |
Call Code |
Peak Rate |
Off-Peak Rate |
|
Mobile |
M or m |
$0.45 |
$0.20 |
|
Landline |
L or l |
$1.20 |
$0.85 |
|
International |
I or i |
$3.50 |
$3.05 |
Â
Â
Use the following specifications to write the program:
? A customer can make any types of calls.
? For each call type, a customer can have either zero or more calls.
? The calls are made either during peak or off-peak hours.
Â
1. The program should accept as input the user account number (phone number), the call type; for each call type, the number of calls the customer made. For each call specify the call minutes and whether the call was made during peak or off-peak hours.
Â
Â
Â
Â
2. You will use this information to generate the customer?s bill and display in the format given in the sample below. Please note that you will need to use appropriate call rate depending on whether the call was made during peak or off-peak hours.
Â
3. The program should then continue to calculate the bill for the next customer. The program ends/exits when all bills have been generated.
Â
4. The customer?s bill should display customer?s account information (phone number), subtotal charges for each call type. It should also display peak and off-peak minutes, rate and charges. A grand total showing the total charges payable by the customer. A sample output is given below:
Â
Â
Â
Note:
• Validate all data entry.
• All numerical output must be formatted to display to twodecimal places.
• Have appropriate commenting in your program and practice good programming skills. Your program should be well indented, well documented and user friendly. The output format for the program can be of your own choice and style.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll