Produce a complete C++ program for the following Scenario 1.
Excel Network is a telecommunication service provider that offer the channel to it customers as below :There are three types of customers : PERSONAL, RESIDENTIAL and BUSINESS.For PERSONAL customers, the following rates apply :-Bill processing fee : RM2.00-Basic service fee : RM5.00-Premium channels : RM5.00 per channelFor RESIDENTIAL customers, the following rates apply :-Bill processing fee : RM8.00-Basic service fee : RM25.50-Premium channels : RM10.50 per channelFor BUSINESS customers, the following rates apply :-Bill processing fee : RM20.00-Basic service fee : RM30.00-Premium channels : RM25.50 per channelThe formula to calculate bill amount :-BILL AMOUNT = Bill processing fee + Basic service fee + number of premium channels * premium channel
The program should ask the user for an account number (integer) and a customer code. Customer code should be P or p for PERSONAL customer, R or r for a RESIDENTIAL customer, and B or b for a BUSINESS customer. Error message will be displayed if the user provides wrong input. The OUTPUT will be the customer’s account number (example: P12345 if Personal, R12345 if Residential or B12345 if Business) and the billing amount. All fees must be declared as named constants. Use manipulator for any appropriate output.Use the following function [Determine the formal parameters (if any)]:main() – to receive input and to print the billing amount.double personal()- to calculate the bill for PERSONAL customers and then return the billing amount to the function main() to be output.double residential()- to calculate the bill for RESIDENTIAL customers and then return the billing amount to the function main() to be output.double business()- to calculate the bill for BUSINESS customers and then return the billing amount to the function main() to be output.The program also allows the user to repeat this process as often as the user wishes.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here