Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use java A mobile phone service provider has three different subscription packages for its customers. Package A: For $ 3 9 . 9 9 per
Use java
A mobile phone service provider has three different subscription packages for its customers.
Package A:
For $ per month, minutes are provided.
Additional minutes are $ per minute.
Package B:
For $ per month, minutes are provided.
Additional minutes are $ per minute.
Package C:
For $ 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 a monthly bill. You may assume that the user will only enter A B or C You can use scanner.nextLine to read the package from the user.
Sample run :
Enter package: A
Enter minutes used:
The monthly bill is $
Sample run :
Enter package: C
Enter minutes used:
The monthly bill is $
Sample run :
Enter package: B
Enter minutes used:
The monthly bill is $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started