Question: Using java and some comments on why it's coded the way it is would be helpful. Mobile Service Provider A mobile phone service provider has
Using java and some comments on why it's coded the way it is would be helpful.
Mobile Service Provider
A mobile phone service provider has three different subscription packages for its customers.
Package A: -For $39.99 per month, 450 minutes are provided. -Additional minutes are $0.45 per minute. Package B: -For $59.99 per month, 900 minutes are provided. -Additional minutes are $0.40 per minutes. Package C: -For $69.99 per month, unlimited minutes are provided.
Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of minutes that were used. The program should display the total charges.
Sample run 1:
| Enter the letter of the plane package: A Enter the number of minutes used : 550 The monthly bill is $84.99 |
Sample run 2:
| Enter the letter of the plane package: C Enter the number of minutes used : 1000 The monthly bill is $69.99 |
Sample run 3:
| Enter the letter of the plane package: B Enter the number of minutes used : 100 The monthly bill is $59.99 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
