Question: Write a program that calculates and prints the Total Bill for a cellular company using two Local Postpaid Plans (Excluding 5% VAT): Mobile Plan Data

Write a program that calculates and prints the Total Bill for a cellular company using two Local Postpaid Plans (Excluding 5% VAT): Mobile Plan Data Calls Monthly Rental Smart 500 25 GB 2000 Minutes 500 AED Premium 1000 100 GB 4500 Minutes 1000 AED NOTES: .Local Data usage exceeding the package shall be charged as 25 fils per MB (1GB - 1024MB). *Local Calls out of the included minutes are charged as 0.5 fils per Second. i. Ask the user to enter the account number. A valid account number must contain 5 digits. ii. Ask the user to enter the plan code (The user will enter s or S for Smart Plan and p or iii. Ask the user to enter the Data Usage and Minutes. Assume that the user will only enter iv. Calculate the amount due including VAT. The user must be charged 5% VAT on the v. Display all entered details and total amount on the screen. If the user an invalid account number the user must re-enter the account P for Premium Plan). Assume correct input by the user integers; you don't need to check if the input is integer and 5% VAT on excess usa Sample Run: Enter the account Nurber: 12345 Enter che plan code: S Data Usage in GB: 26 Calls in Minutes: 2050 Enter the account Nurber: 98765 Enter he plan code: P Data Usage in GB: 102 Calls in Minutes: 5000 Write a program that calculates and prints the Total Bill for a cellular company using two Local Postpaid Plans (Excluding 5% VAT): Mobile Plan Data Calls Monthly Rental Smart 500 25 GB 2000 Minutes 500 AED Premium 1000 100 GB 4500 Minutes 1000 AED NOTES: .Local Data usage exceeding the package shall be charged as 25 fils per MB (1GB - 1024MB). *Local Calls out of the included minutes are charged as 0.5 fils per Second. i. Ask the user to enter the account number. A valid account number must contain 5 digits. ii. Ask the user to enter the plan code (The user will enter s or S for Smart Plan and p or iii. Ask the user to enter the Data Usage and Minutes. Assume that the user will only enter iv. Calculate the amount due including VAT. The user must be charged 5% VAT on the v. Display all entered details and total amount on the screen. If the user an invalid account number the user must re-enter the account P for Premium Plan). Assume correct input by the user integers; you don't need to check if the input is integer and 5% VAT on excess usa Sample Run: Enter the account Nurber: 12345 Enter che plan code: S Data Usage in GB: 26 Calls in Minutes: 2050 Enter the account Nurber: 98765 Enter he plan code: P Data Usage in GB: 102 Calls in Minutes: 5000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
