Thursday, August 8, 2013

Caculate Number of Minutes Python

Download From Here
Design and write a program that calculates and display 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:

-The minimum minutes allowed should be at least 200, but not greater than 800. Validate input so that the minutes allowed are between 200 and 800.

-The minutes used must be over 0. Validate input so that the user does not enter a negative value.

Once correct data is entered, the program should calculate the number of minutes over the minutes 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 to 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.

No comments:

Post a Comment