Question: The programming example calculate a customer's bill for a local cable company . There are two types of customers: Residential and Business 2 rates for

The programming example calculate a customer's bill for a local cable company . There are two types of customers: Residential and Business

2 rates for calculating a cable bill: One for residential customers and One for Business Customers

For residential customer: Bill processing fee: $4.50 ; Basic service fee: $20.50; Premium Channel: $7.50 per channel.

For Business customer: Bill processing fee: $15.00 ; Basic service fee: $75.00 for first 10 connection and $5 for each additional connection. Premium channel cost:$ 50.00 per channel for any number of connections.

Input: Customer account number; Customer Code; Number of premium channels; For business customers, number of basic service connections.

Output: Customer's account number; Billing account

Describe these items:

1--Restate inputs and how are they used.

2--What calculation needs to be done to determine whether the customer is a residential customer?

3--What calculation needs to be done to determine if the customer is a business customer

4--How do you calculate the bill for a residential customer?

5--H ow do you calculate the bill for a business customer?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!