Answered step by step
Verified Expert Solution
Link Copied!

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 $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 minute.
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 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 1:
Enter package: A
Enter minutes used: 550
The monthly bill is $84.99
Sample run 2:
Enter package: C
Enter minutes used: 1000
The monthly bill is $69.99
Sample run 3:
Enter package: B
Enter minutes used: 100
The monthly bill is $59.99

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

How many multiples of 4 are there between 10 and 250?

Answered: 1 week ago