Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Finding and scheduling appointments with new prospective clients.

Answered: 1 week ago