Question: D1. Write an interactive C programme that calculates a customer's bill for a department, in an engineering company, responsible for drilling boreholes. There are two

 D1. Write an interactive C programme that calculates a customer's bill

D1. Write an interactive C programme that calculates a customer's bill for a department, in an engineering company, responsible for drilling boreholes. There are two types of customers: private and commercial. There are two rates for calculating a bill: one for private customers and one for commercial customers. For private customers, the following rates apply: Bill processing fee: GHC4.50 Basic service fee: GHC20.50 Drilling charge: GHC70.50 per metre of borehole. For business customers, the following rates apply: Bill processing fee: GHC15.00 Basic service fee: GHC150.00 for the first 5 metres, GHC50.00 for each additional metre of borehole. Drilling charge: GHC500 per metre of borehole for any depth of borehole The programme should prompt a user for an account number (an integer) and a customer code. Assume that a customer code 101 stands for a private customer and 102 stands for a commercial customer. Input: The customer's account number, customer code, depth of borehole in metres to which the customer requests. Output: Customer's account number and the billing amount. Take a screens

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!