Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Write an interactive C program that calculates a customer's bill for mobile telecommunication company. There are two types of customers residential and business. There

image text in transcribed

4. Write an interactive C program that calculates a customer's bill for mobile telecommunication company. There are two types of customers residential and business. There are two rates for calculating a bill: one for residential customers and one for business customers. For residential customers, the following rates apply: Bill processing fee: GHC3.50 Basic service fee: GHC10.50 Premium channels: GHC8.50 per channel For business customers, the following rates apply: Bill processing fee: GHC12.00 Basic service fee: GHC20.00 for the first 20 connections, GHC4.00 for each additional connection Premium channels: GHC40 per channel for any number of connections The program should ask the user for an account number (an integer) and a customer code Assume that a customer code 100 stands for a residential customer, and 200 stands for a business customer. loput: The customer's 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. 18 marks] Processing: The program should use the following functions to calculate and return the billing amount Residentialbi17: This function calculates and returns the billing amount for residential service 112 marks EXAMINER: WIAFE OWUSU-BANAHENE (PHD) Page 3 of 4 Business8177: This function calculates and returns the billing amount for business service [10 marks) Output: Customer's account number, the type of service and the billing amount

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago