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 channel For RESIDENTIAL customers, the following rates apply : -Bill processing fee : RM8.00 -Basic service fee : RM25.50 -Premium channels : RM10.50 per channel For BUSINESS customers, the following rates apply : -Bill processing fee : RM20.00 -Basic service fee : RM30.00 -Premium channels : RM25.50 per channel The 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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.6: A Case Study: Radar Speed Traps
Problem 3E
icon
Related questions
Question
100%

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 channel
For RESIDENTIAL customers, the following rates apply :
-Bill processing fee : RM8.00
-Basic service fee : RM25.50
-Premium channels : RM10.50 per channel
For BUSINESS customers, the following rates apply :
-Bill processing fee : RM20.00
-Basic service fee : RM30.00
-Premium channels : RM25.50 per channel
The 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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Numerical
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole