Question: a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium Local calls out

a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i.

a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium Local calls out of the included minutes are charged as 0.2 fils per second Local SMSS out of the included SMSs are charged as 10 fils per SMS iii. Minutes. iv. 600 SMS 1500 30 100 Ask the user to enter the account number. A valid account number must contain 4 digits. If the user inputs an invalid account number the user must re-enter the account. ii. Ask the user to enter the plan code (The user will enter r or R for Regular service and por P for Premium service). Assume correct input by the user. Ask the user to enter the number of minutes and number of messages. You may assume that the user will not enter a negative number. Calculate the amount due and print all entered details it to the screen. Sample Run: Welcome to our bill calculator. Monthly Rental 50 AED Account Number: 4672 Plan: R Number of Minutes: 100 Number of Messages: 100 Total Amount = 57 AED 100 AED Please enter the Account Number: 46728 *Incorrect! Please enter it again: 4672 Please enter the Plan Code: R Please enter Number of Minutes: 1230 Please enter Number of Messages: 340 a. Write a program that calculates and prints the bill for a cellular company using two plans: Plan i. Regular Premium Local calls out of the included minutes are charged as 0.2 fils per second Local SMSS out of the included SMSs are charged as 10 fils per SMS iii. Minutes. iv. 600 SMS 1500 30 100 Ask the user to enter the account number. A valid account number must contain 4 digits. If the user inputs an invalid account number the user must re-enter the account. ii. Ask the user to enter the plan code (The user will enter r or R for Regular service and por P for Premium service). Assume correct input by the user. Ask the user to enter the number of minutes and number of messages. You may assume that the user will not enter a negative number. Calculate the amount due and print all entered details it to the screen. Sample Run: Welcome to our bill calculator. Monthly Rental 50 AED Account Number: 4672 Plan: R Number of Minutes: 100 Number of Messages: 100 Total Amount = 57 AED 100 AED Please enter the Account Number: 46728 *Incorrect! Please enter it again: 4672 Please enter the Plan Code: R Please enter Number of Minutes: 1230 Please enter Number of Messages: 340

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The program to calculate and print the bill for ... View full answer

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!