Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 1 A mobile phone service provider has three different subscription packages for its customers. Package A: For $ 3 9 . 9 9 per

Program 1
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

Step: 3

blur-text-image

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions