Question: Write a C++ program that calculates a customer's bill for a local cable company. The cable company has two types of customers : residential and
Write a C++ program that calculates a customer's bill for a local cable company. The cable company has two types of customers: residential and business with different rates allocated for each type.
For residential customers, the following rates apply:
- Bill processing fee: R4.50
- Basic service fee: R20.50
- Premium channels: R7.50 per channel
Forbusiness customers, the following rates apply:
- Bill processing fee: R15.00
- Basic service fee: R75 for the first 10 connections, R5 for each additional connection
- Premium channels: R50 per channel for any number of connections
The program should prompt the user for an account number (an integer) and a customer code. Assume that R or r stands for residential customer, and B or b stands for a business customer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
