c program library used stdio h please add comments thanks you work for a cable compa 5191931
C++ program. Library used: stdio.h. Please add comments. Thanks. You work for a cable company and are designing a software system to automate the customer service system. Your system is archaic, so you can only read in the inputs 1 through 4, `y’ `n’ and `q’ from your user (the current customer). When your program begins, display the following menu to the user: [prompt]$./customer_experience
Welcome to CableCom! Please make a choice from the following options:
1)Change your password
2)Cancel your service
3)Schedule a service call
4)Pay your bill
For simplicity (to avoid this bug) assume the user always enters a number. If the user enters an incorrect number at the start of the program, print
Please enter a number between 1 and 4.
and use scanfto obtain another input.
Your system then asks a series of questions. After picking an option, ask the user if they would like to upgrade their service. A service upgrade message looks like this:
You are eligible for a limited time offer.You can get %d megabits per second for the low promotional rate of $%d a month. Act now while supplies last.
Here, the two %d variables depend on the options and the user’s actions (specified below). They may either input `y’ for yes, `n’ for no, or `q’ for quit. If at any point in time the user enters `y’, they have decided to upgrade their service! Congratulate them by printing:
Great choice. Goodbye.
And exit the program. Your service upgrade messages and behavior on `q’ is as follows, depending on the option chosen above:
● Option 1 ○ Begin your service upgrade at 10 megabits per second for $50 dollars a 4 5 month. Every time the customer enters `n’ or `q’, increase both the megabits per second and dollars a month by 1. ○ After any prompt, exit if `q’ has been pressed twice (not necessarily in a row).
● Option 2 ○ Begin your service upgrade at 100 megabits per second for $80 dollars a month. Every time the customer enters `n’ or `q’, increase the megabits per second by 10 and dollars a month by 20. ○ After any prompt, exit if `q’ has been pressed five times (not necessarily in a row).
● Option 3 ○ Begin your service upgrade at 40 megabits per second for $60 dollars a month. Every time the customer enters `n’ or `q’, increase the megabits per second by 5 and dollars a month by 10. ○ After any prompt, exit if `q’ has been pressed five times (not necessarily in a row).
● Option 4 ○ Print the following to the screen, then exit the program:
We already have your credit card information and have charged you.Thanks for being a loyal customer!