Question: PART A: (Online Cell Phone Plan Subscription Program) Options available for Purchasing Cell Phone: OPTION CATEGORY 1 Samsung Galaxy S8 ($30/month) 2 Samsung Galaxy S8
PART A: (Online Cell Phone Plan Subscription Program)
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 C++ 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
*********************************
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): 3
Enter the number of phones for this selection: 1
*********************************
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): 4
Enter the number of phones for this selection: 2
*********************************
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): 5
Enter the number of phones for this selection: 1
*********************************
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): 9
***************PLAN SELECTION******************
Which plan would you like to participate in?
A. 4 phone Lines or More - $50/Line, otherwise flat fee of $300/month
B. Less than 4 Lines - $70/Line, otherwise $50/Line per month
C. Plan with Tablet Line (Any number of Lines) $60/Line
Enter your Phone Plan (A, B or C): A
How many lines do you want activated? 6
*************** SUMMARY **************
Items Ordered:
Samsung Galaxy S8 ($30/month): 3
Samsung Galaxy S8 Plus ($35/month): 3
LG G6 ($20/moth): 1
Apple iPhone 7 ($25.99/month): 2
Apple iPhone 7 Plus ($49.99/month): 1
You have selected Plan A
The number of phone lines activated is 6
Your total cost is $616.97 per month
Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
