Write an interactive C program that calculates a customer’s bill for the Jumbo telecommunication company. Business and residential are 2 the kinds of customers.There are 2 rates for calculating a bill: one for business customers and one for residential customers. The following rates apply for business customers: Premium channels: $40 per channel for any number of connections. Basic service fee: $20.00 for the first 20 connections, $4.00 for each additional connection Bill processing fee: $12.00 The following rates apply for residential customers: Premium channels: $8.50 per channel. Basic service fee: $10.50 Bill processing fee: $3.50 The program should ask the user for and a customer code and an account number (an integer). Assume that a customer code 2 stands for a business customer and 1 stands for a residential customer, and Input: The number of premium channels, customer code, customer’s account number to which the user subscribes, and , in the case of number of basic service connections , business customers. Processing: The program should calculate the following bills: BusinessBill : This is the billing amount for business service. ResidentialBill : This is the billing amount for residential service. Output: Customer’s account number, the type of service and the billing amount Note. This is a full one question asked. Thanks very much expert.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

 Write an interactive C program that calculates a customer’s bill for the Jumbo telecommunication company. Business  and residential are 2 the kinds of customers.There are 2 rates for calculating a bill:  one for business customers and  one for residential customers.

The following rates apply for business customers:

Premium channels: $40 per channel for any number of connections.

Basic service fee: $20.00 for the first 20 connections, $4.00 for each additional connection

 Bill processing fee: $12.00

The following rates apply for residential customers:

Premium channels: $8.50 per channel.

Basic service fee:    $10.50

Bill processing fee: $3.50  

 The program should ask the user for and a customer code and an account number (an integer). Assume that a customer code 2 stands for a business customer and 1 stands for a residential customer, and

 Input:      The number of premium channels, customer code, customer’s account number    to which the user subscribes, and , in the case of  number of basic service connections , business customers.            

Processing:  The program should calculate the following bills:       

BusinessBill : This is the billing amount for business service.        

ResidentialBill : This is the billing amount for residential service.   

Output:   Customer’s account number, the type of service and the billing amount

 

Note. This is a full one question asked. Thanks very much expert.

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Operators
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education