11. Mobile Service Provider A mobile phone service provider has three different subscription packages for its customers: month, 450 minutes are provided. Additional minutes are For $39.99 $0.45 per minute. Package A: per For $59.99 per month, 900 minutes are provided. Additional minutes are $0.40 per minute. Package B: Package C: For $69.99 per month, unlimited minutes are provided. Design a class that calculates a customer's monthly bill. It should store the letter of the package the customer has purchased (A, B, or C) and the number of minutes that were used. It should have a method that returns the total charges. Demonstrate the class in a that asks the user to select a package and enter the number of minutes used. The program program should display the total charges.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

requires 2 java programs, needs constants hard coded in the testing program

Otherwise, the method should return fal
• isEthy1Boiling. This method should return the boolean
ture in the is at or the of alcohol.
is0xygenFreezing. true if the tem-
• This method the value true if the temperature
ature in the field is at or the of oxygen.
• This the value true if the temperature
ture stored in the te
прега-
perature stored in the temperature field is at or below the freezing point
Otherwise, the method should return false.
Otherwise, the method should return false.
oxygen.
• is0xygenBoiling. This method should return the boolean value true if the ton
ature stored in the temperature field is at or above the boiling point
Otherwise, the method should return false.
oxygen.
stored in the temperature field is at or below the freezing point of water.
the method should return false.
Otherwise,
• iswaterBoiling. This method should return the boolean value true if the temperature
stored in the temperature field is at or above the boiling point of water. Otherwise
the method should return false.
Write a program that demonstrates the class. The program should ask the user to enter a
temperature, then display a list of the substances that will freeze at that temperature and
those that will boil at that temperature. For example, if the temperature is -20, the class
should report that water will freeze and oxygen will boil at that temperature.
11. Mobile Service Provider
A mobile phone service provider has three different subscription packages for its customers:
For $39.99 per month, 450 minutes are provided. Additional minutes are
$0.45 per minute.
Package A:
For $59.99 per month, 900 minutes are provided. Additional minutes are
$0.40 per minute.
Package B:
Package C:
For $69.99 per month, unlimited minutes are provided.
Design a class that calculates a customer's monthly bill. It should store the letter of the
package the customer has purchased (A, B, or C) and the number of minutes that were
used. It should have a method that returns the total charges. Demonstrate the class in a
program that asks the user to select a package and enter the number of minutes used. The
program should display the total charges.
12. Mobile Service Provider, Part 2
Modify the program you wrote for Programming Challenge 11 so it also calculates and
displays the amount of money Package A customers would save if they purchased package
Bor C. and the amount of money package B customers would save if they purchased pack-
age C. If there would be no savings, no message should be printed.
Transcribed Image Text:Otherwise, the method should return fal • isEthy1Boiling. This method should return the boolean ture in the is at or the of alcohol. is0xygenFreezing. true if the tem- • This method the value true if the temperature ature in the field is at or the of oxygen. • This the value true if the temperature ture stored in the te прега- perature stored in the temperature field is at or below the freezing point Otherwise, the method should return false. Otherwise, the method should return false. oxygen. • is0xygenBoiling. This method should return the boolean value true if the ton ature stored in the temperature field is at or above the boiling point Otherwise, the method should return false. oxygen. stored in the temperature field is at or below the freezing point of water. the method should return false. Otherwise, • iswaterBoiling. This method should return the boolean value true if the temperature stored in the temperature field is at or above the boiling point of water. Otherwise the method should return false. Write a program that demonstrates the class. The program should ask the user to enter a temperature, then display a list of the substances that will freeze at that temperature and those that will boil at that temperature. For example, if the temperature is -20, the class should report that water will freeze and oxygen will boil at that temperature. 11. Mobile Service Provider A mobile phone service provider has three different subscription packages for its customers: For $39.99 per month, 450 minutes are provided. Additional minutes are $0.45 per minute. Package A: For $59.99 per month, 900 minutes are provided. Additional minutes are $0.40 per minute. Package B: Package C: For $69.99 per month, unlimited minutes are provided. Design a class that calculates a customer's monthly bill. It should store the letter of the package the customer has purchased (A, B, or C) and the number of minutes that were used. It should have a method that returns the total charges. Demonstrate the class in a program that asks the user to select a package and enter the number of minutes used. The program should display the total charges. 12. Mobile Service Provider, Part 2 Modify the program you wrote for Programming Challenge 11 so it also calculates and displays the amount of money Package A customers would save if they purchased package Bor C. and the amount of money package B customers would save if they purchased pack- age C. If there would be no savings, no message should be printed.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education