Question: Please write in C Task 5: local cable company Write a Task5.c program that calculates and prints the bill for a local cable company. The

Please write in C

Task 5: local cable company Write a Task5.c program that calculates and prints the bill for a local cable company. The company offers two types of service: residential and business. Its rates vary, depending on the type of service. There are two rates for calculating a cable bill: one for residential customers and one. For business customers. For residential customers, the following rates apply: Bill processing fee: $4.50 Basic service fee: $20.50 Premium channels: $7.50 per channel For business customers, the following rates apply: Bill processing fee: $15.00 Basic service fee: $75.00 for first 10 connections, $5.00 for each additional connection Premium channels: $50.00 per channel for any number of connections The program should ask the user for an account number (an integer) and a customer. Code. A service code of r or R means residential customers; a service code of b or B means business customers. Treat any other character as an error. Input: The customers account number, customer code, number of premium channels to which the user subscribes, and, in the case of business customers, number of basic service connections. Output: Customers account number and the billing amount

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!