Question: C ++ with comments please with loops PART 2 (Lab) Write a program that calculates and prints the bill for a cellular company for monthly

C ++ with comments please with loops PART 2 (Lab) Write aC ++ with comments please with loops

PART 2 (Lab) Write a program that calculates and prints the bill for a cellular company for monthly data packages. There are three plans: Plan Data Monthly Rental Bronze 3 GB 150 AED Silver 7 GB 300 AED Gold 10 GB 450 AED Once the data package has finished you will be charged at a pay-as-you-use-data rate of AED 0.27 MB for bronze plan, AED 0.6/ MB for silver plan and AED 0.97 MB for gold plan. Hint: 1 GB = 1000 MB) i. ii. Ask the user to enter the account number. A valid account number must contain 5 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 b or B for bronze plan and s or S for silver plan and g or G for gold plan). Any invalid input must be corrected by asking the user to re-enter. Ask the user to enter the number of data in GB. You may assume that the user will not enter a negative number. Print all the entered details to the screen. Calculate the amount due and print it to the screen. iii. iv. V. Sample Run: Welcome to our bill calculator. Please enter the Account Number: 4672 *Incorrect! Please enter it again: 46728 Please enter the Plan Code: S Please enter amount of data: 7.09 Account Number: 46728 Plan: Silver Amount of data: 7.09 GB Total Amount = 354 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!