Question: quicly plz i have exam, write java program Oman Oil Company needs to create a bill calculation information. In this process, the operations initiated by

Oman Oil Company needs to create a bill calculation information. In this process, the operations initiated by the company are customer information, amount calculation of gas consumption, and display of customer details. Write a Java program to create an object class Gasbill and do the following operations. Member variables: customemo, customername, current_meter_reading, previous_meter_reading. Units Consumed, Billamount. Member Methods : a. Read() To read the values such as customerno, customername, (1 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 (2 Marks) formula and condition which are given below. Formula: UnitsConsumed previous_meter_reading current_meter_reading Condition: UnitsConsumed > and 200 and 501 and and 200 and 500 >501 and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
