Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

With this Python code, I am unsure where to start. Design and write a program th

ID: 3552292 • Letter: W

Question

With this Python code, I am unsure where to start.


Design and write a program that calculates and displays the number of minutes over the monthly contract minutes that a cell phone user incurred. The program should ask the user how many minutes were used during the month and how many minutes they were allowed.  Validate the input as follows:

Once correct data is entered, the program should calculate the number of minutes over the minute allowed.  If minutes were not over, print a message that they were not over the limit.  If minutes were over, for every minute over, a .20 fee should be added to the monthly contract rate of 74.99.  Be sure not to add the .20 fee for minutes 1 to the number of minutes allowed, but rather just minutes over.  Display the number of minutes used, minutes allowed, the number of minutes over, and the total due that month.

You might consider the following functions:

Your sample output might look as follows (note the validation code):

Sample 1 Showing Validation:

How many minutes are allowed: 1000

Please enter minutes between 200 and 800

How many minutes are allowed: 801

Please enter minutes between 200 and 800

How many minutes are allowed: 350

How many minutes were used: -10

Please enter minutes used of at least 0

How many minutes were used: 400

You were over your minutes by  50

---------------MONTHLY USE REPORT------------------

Minutes allowed were 350

Minutes used were 400

Minutes over were 50

Total due is $ 84.99

Do you want to end program? (Enter no or yes): NO

Please enter a yes or no

Do you want to end program? (Enter no or yes): 9

Please enter a yes or no

Do you want to end program? (Enter no or yes): no

Sample 2 Showing Minutes Over:

How many minutes are allowed: 600

How many minutes were used: 884

You were over your minutes by  284

--------------MONTHLY USE REPORT------------------

Minutes allowed were 600

Minutes used were 884

Minutes over were 284

Total due is $ 131.79

Do you want to end program? (Enter no or yes): no

Sample 3 Showing Minutes Not Over:

How many minutes are allowed: 400

How many minutes were used: 379

You were not over your minutes for the month

---------------MONTHLY USE REPORT------------------

Minutes allowed were 400

Minutes used were 379

Minutes over were 0

Total due is $ 74.99

Do you want to end program? (Enter no or yes): yes

Explanation / Answer

Here is the solution:

http://pastebin.com/5hMngFkp

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote