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

**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 minute.
- **Package C:** For $69.99 per month, unlimited minutes are provided.

---

**Oxygen Boiling and Freezing Points**

Write a program that lists the following methods for the class:

- **isOxygenBoiling:** The method should return the boolean value true if the temperature field is at or above the boiling point of oxygen.
- **isOxygenFreezing:** The method should return the boolean value true if the temperature field is at or below the freezing point of oxygen.
- **isWaterBoiling:** The method should return the boolean value true if the temperature field is at or above the boiling point of water.
- **isWaterFreezing:** The method should return the boolean value true if the temperature field is at or below the freezing point of water.

The class should have a method that returns the total charges. Demonstrate the class in a program that asks the user to enter the number of minutes used. The program should store the letter of the package the customer has. It should display the total charges and should have a method that checks for the package offering the least cost for the customer's usage.

---

**Mobile Service Provider, Part 2**

Modify the program for Programming Challenge 1 so it also calculates and displays the amount of money package customers would have saved if they purchased Package B or C, and the amount of money package customers would save if they purchased Package C. If there would be no savings, no message should be printed.
Transcribed Image Text:**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 minute. - **Package C:** For $69.99 per month, unlimited minutes are provided. --- **Oxygen Boiling and Freezing Points** Write a program that lists the following methods for the class: - **isOxygenBoiling:** The method should return the boolean value true if the temperature field is at or above the boiling point of oxygen. - **isOxygenFreezing:** The method should return the boolean value true if the temperature field is at or below the freezing point of oxygen. - **isWaterBoiling:** The method should return the boolean value true if the temperature field is at or above the boiling point of water. - **isWaterFreezing:** The method should return the boolean value true if the temperature field is at or below the freezing point of water. The class should have a method that returns the total charges. Demonstrate the class in a program that asks the user to enter the number of minutes used. The program should store the letter of the package the customer has. It should display the total charges and should have a method that checks for the package offering the least cost for the customer's usage. --- **Mobile Service Provider, Part 2** Modify the program for Programming Challenge 1 so it also calculates and displays the amount of money package customers would have saved if they purchased Package B or C, and the amount of money package customers would save if they purchased Package 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