QUESTION 2
***Do for BOTH RESEDENTIAL and BUSINESS. MUST USE C++.
MUST USE WHILE LOOP METHOD***
Produce a program that calculates a customer’s bill for ONE
Network.
There are two types of customers: RESIDENTIAL and BUSINESS:
A) For RESIDENTIAL customers, the following rates apply:
B) For BUSINESS customers, the following rates apply:
The
formula to calculate bill amount is:
BILL AMOUNT =
Bill processing fee + Basic service fee + number of premium
channels * premium channel
The program should ask the user for an account number
(example: R0112345) and a customer code. Customer code should be 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 and
the billing amount. All fees must be declared as named constants.
Use manipulator for any appropriate output. Set precession to
2
The program allows the user to repeat the program as
they wish.
QUESTION 2 ***Do for BOTH RESEDENTIAL and BUSINESS. MUST USE C++. MUST USE WHILE LOOP METHOD*** Produce a program that c
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am