Question: MATLAB Write a program that calculates and prints the bill for a cellular company using two plans: Local calls out of the included minutes are

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

Local calls out of the included minutes are charged as 0.7 fils per second

Local SMSs out of the included SMSs are charged as 20 fils per SMS

Ask the user to enter the account number. A valid account number must contain 3 digits. If the user inputs an invalid account number the user must re-enter the account.

Ask the user to enter the plan code (The user will enter r or R for Regular service and p or 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.

MATLAB Write a program that calculates and prints the bill for a

Write a program that calculates and prints the bill for a cellular company using two plans: Local calls out of the included minutes are charged as 0.7 fils per second Local SMSs out of the included SMSs are charged as 20 fils per SMS Ask the user to enter the account number. A valid account number must contain 3 digits. If the user inputs an invalid account number the user must re-enter the account. Ask the user to enter the plan code (The user will enter r or R for Regular service and p or 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. Plan Minutes SMS Monthly Rental 400 Regular 1300 Premium 2600 215 AED 400 AED 800 Sample Run: Welcome to our bill calculator. Please enter the Account Number: 4675 *Incorrect! Please enter it again: 467 Please enter the Plan Code: R Please enter Number of Minutes: 1300 Please enter Number of Messages: 400 Account Number: 467 Plan: Regular Number of Minutes: 1300 Number of Messages: 340 Total Amount = 316.20 AED

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 Databases Questions!