Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Control STRuctures I & II SELECTION/Repetition STATEMENTS Options available for Purchasing Cell Phone: OPTION CATEGORY 1 Samsung Galaxy S8 ($30/month) 2 Samsung Galaxy S8

C++ Control STRuctures I & II SELECTION/Repetition STATEMENTS

Options available for Purchasing Cell Phone:

OPTION

CATEGORY

1

Samsung Galaxy S8 ($30/month)

2

Samsung Galaxy S8 Plus ($35/month)

3

LG G6 ($20/moth)

4

Apple iPhone 7 ($25.99/month)

5

Apple iPhone 7 Plus ($49.99/month)

-1

Continue to Phone Plan Selection

Write a program for Mobile Plus Communications (MPC) Mobile Communications Company that asks customers to select from the list of smart phones in the table above. The Menu will be presented to customers upon entering the MPC.com website. For now, this program will only run on a desktop computer. After all the phones are selected, the customer must then select a Plan from the following Phone Plan Option List:

Phone Plans available after selecting phones from the menu above:

OPTION

SELECTION

Plan A

4 phone Lines or More - $50/Line per month, otherwise a flat fee of $300/month

Plan B

Less than 4 Lines - $70/Line per month, otherwise $50/Line per month

Plan C

Plan with Tablet Line (Any number of Lines) $60/Line per month

If the customer enters any option that is not in the tables above, the program should display Invalid Option Selected. You must use the switch statement in your program to solve this problem.

The program should calculate the total cost of the purchase based on the users selections and then provide the following output summary.

Number of Phones Purchased for each type of phone

Plan Selected

Number of phone lines activated

Total Cost

The following is a sample output

********************************

1. Samsung Galaxy S8 ($30/month)

2. Samsung Galaxy S8 Plus ($35/month)

3. LG G6 ($20/moth)

4. Apple iPhone 7 ($25.99/month)

5. Apple iPhone 7 Plus ($49.99/month)

9. Exit

Enter your phone selection (1-5: 9 to exit): 1

Enter the number of phones for this selection: 3

*********************************

1. Samsung Galaxy S8 ($30/month)

2. Samsung Galaxy S8 Plus ($35/month)

3. LG G6 ($20/moth)

4. Apple iPhone 7 ($25.99/month)

5. Apple iPhone 7 Plus ($49.99/month)

9. Exit

Enter your phone selection (1-5: 9 to exit): 2

Enter the number of phones for this selection: 3

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

To what extent is news constructed or created?

Answered: 1 week ago

Question

3. An overview of the key behaviors is presented.

Answered: 1 week ago

Question

2. The model is credible to the trainees.

Answered: 1 week ago