Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

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 customer's needs.
A customer who needs fewer than 500 minutes of talk and no text or data should buy Plan A at sag per month.
A customer who needs fewer than 500 minutes of talk and any text messages should buy Plan B at 333 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 $ 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 $TO per month or Plan F for 3 gigabytes or more at $51 per month.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 $37 per month
image text in transcribed

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions