Question: NetBeans program. For Java language. Dhofar Water Company needs to create a bill calculation information. In this process, the operations initiated by the company are


NetBeans program. For Java language.
Dhofar Water Company needs to create a bill calculation information. In this process, the operations initiated by the company are customer information, amount calculation of water consumption, and display of customer details. Write a Java program to create an object class Waterbill and do the following operations. Member Variables: customerno, customername, current_meter_reading previous_meter_reading. Units Consumed. Billamount. Member Methods : a Read() To read the values such as customerno, customername, (I Mark) current_meter_reading, and previous_meter_reading. Get the input through the keyboard. b. Bill_Calc() To calculate Units Consumed and Billamount using the formula (2 Marks) and condition which are given below. Formula: UnitsConsumed = current_meter_reading previous_meter_reading. Condition : Units Consumed > and 100 and300 c. Display ( ) To display the customerno, customername. (1 Mark) current_meter_reading, previous_meter_reading and Billamount. Create a driver or control class called Waterbill_Test. In this class, the main method is (1 Mark) used to call the methods Read 0. Bill_Calc(), and Display O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
