Question: Hello, thank you so much for your answer. I ' m reaching out to see if we can get this last part fixed. In the

Hello, thank you so much for your answer. I'm reaching out to see if we can get this last part fixed. In the instructions, when the user input 1 the program create a single telephone bill, when they input 2, the program create multiple telephone bills and when they enter 3 the program exits or quits. Can you please assist with that part based on instructions. Thank you.
Write a modular python program that will generate a cellular telephone bill, accept cash payments and instruct cashier how to give change.
The amount owed is based on the number of minutes used.
Calculate the cost of the phone bill using the information below.
Use named constants for the base cost and the per minute fees
In addition the program must read from a data file and produce telephone bills
The program should run continually until stopped from the menu
Minutes Base Cost Per Minute Fee
Under 60 $15.00 $0.12
60120 $15.00 $0.07
Over 120 $15.00 $0.04
your program must successfully meet the requirements below:
Display a menu to offer the user a choice of creating a single telephone bill with payment processing or creating multiple telephone bills (without payment processing) from a data file. Include an option to quit the program. The menu should be the first thing displayed when your program begins executing.
Prompt user for the customers name, street address, city, state, zip code and number of minutes for a single phone bill.
Calculate and display a telephone bill with all information specified in the Sample Output.
After displaying the telephone bill, prompt user for the amount of money received from the customer. The user should supply the amount given in pennies, for example 275 instead of 2.75.
If the amount of money received from the customer is equal to or greater than the amount owed, calculate the amount of change and display the number of dollars, quarters, dimes, nickels, and pennies that the customer should receive. Otherwise, display a descriptive error message.
Your program's output should be formatted in the same manner as the Sample Output.
Write the program with the following minimum number of functions:
Function 1 displayMenu()
A void function that displays the menu. This function accepts no arguments.
Function 2 calcAmountOwed()
A function that accepts the number of minutes used as arguments and calculates and returns the amount owed.
Function 3 getPaymentAmount()
A function that accepts the amount owed and prompts the user for the payment amount, validates it and returns the validated amount.
Function 4 displayChange()
A void function that accepts the amount owed and payment amount as arguments and calculates and displays the change needed formatted to match the Sample Output.
Function 5 processDataFile()
A void function that reads the specified text file and calculates and displays telephone bills for each record in the file. This function accepts no arguments (all needed information is read from file) and calls function 2 to complete the task of displaying telephone bills.
Your program must read and display phone bills from the TelephoneData.txt file. When the user selects the option to create multiple telephone bills, bills should be calculated and displayed for every record in the file without the user needing to do anything else. The TelephoneData.txt file contains 5 records, but your program must be able to process an identically formatted file with any number of records without counting the records. You do not need to process payment information if this option is chosen by the user.
All keyboard input must be validated with the opportunity to re-enter unacceptable input.
Sample Output (user response shown in bold)
Welcome to the CPCC Telephone System
1 Create Single Telephone Bill
2 Create Multiple Telephone Bills
3 Quit
Enter your choice: 1
Enter the name of the customer: Larry Smith
Enter street address: 122 Main Street
Enter city: Charlotte
Enter state: NC
Enter zip code: 23499
Enter the number of minutes used: 157
Larry Smith
122 Main Street
Charlotte, NC 23499
Amount Owed: $31.28
Enter the amount received from customer: 5000
Denomination Number
Dollars 18
Quarters 2
Dimes 2
Nickels 0
Pennies 2
Customer's info is saved into TelephoneData.txt file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!