Question
JAVA CODING Write a program called CellPhoneService for Horizon Phones, a provider of cellular phone service. Prompt a user for maximum monthly values for talk
JAVA CODING
Write a program called CellPhoneService for Horizon Phones, a provider of cellular phone service.
Prompt a user for maximum monthly values for talk minutes needed, text messages needed, and gigabytes of data needed, and then display a recommendation for the best plan for the customers needs.
A customer who needs fewer than 500 minutes of talk and no text or data should buy Plan A at $49 per month.
A customer who needs fewer than 500 minutes of talk and any text messages should buy Plan B at $55 per month.
A customer who needs 500 or more minutes of talk and no data should buy either Plan C for up to but not including 100 text messages at $61 per month or Plan D for 100 text messages or more at $70 per month.
A customer who needs any data should buy Plan E for up to but not including 3 gigabytes at $79 per month or Plan F for 3 gigabytes or more at $87 per month.
TASKS: The CellPhoneService program recommends plan A. The CellPhoneService program recommends plan B. The CellPhoneService program recommends plan C and plan D. The CellPhoneService program recommends plan E and plan F.
An example of the program is shown below:
Enter talk minutes needed >> 525 Enter text messages needed >> 1000 Enter gigabytes of data needed >> 3 Plan F $87 per month
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