Create class for Electricity for N flats of an apartment. The required details are Flat number, EB meter number, Owner name, Previous month reading( in units), current month reading ( in Units), amount. Except amount and EB meter number remaining values will be accepted from the user. EB meter number could be random number generated between 10000 to 20000. Amount will be calculates as below: 0-100 Minimum charges =100 100-500 2.5 ₹ per unit 500-1000 5.0 ₹ per unit Above 1000 7.5 ₹ per unit Write appropriate functions to perform the following: · Display the flat and owner details who paid maximum and minimum EB charges. · Display the average amount paid by all flats in each floor. Floor will be identified from the first digit of a flat number. For 1001 – first floor , 2005 – second floor, 5010- Fifth floor. Display the floor wise details. · Display the Flat number, EB amount along with the meter number in the ascending order of the meter number.
Create class for Electricity for N flats of an apartment. The required details are Flat number, EB meter number, Owner name, Previous month reading( in units), current month reading ( in Units), amount. Except amount and EB meter number remaining values will be accepted from the user. EB meter number could be random number generated between 10000 to 20000. Amount will be calculates as below:
0-100 Minimum charges =100
100-500 2.5 ₹ per unit
500-1000 5.0 ₹ per unit
Above 1000 7.5 ₹ per unit
Write appropriate functions to perform the following:
· Display the flat and owner details who paid maximum and minimum EB charges.
· Display the average amount paid by all flats in each floor. Floor will be identified from the first digit of a flat number. For 1001 – first floor , 2005 – second floor, 5010- Fifth floor. Display the floor wise details.
· Display the Flat number, EB amount along with the meter number in the ascending order of the meter number.
note: java programming(please do the code in java)
Step by step
Solved in 2 steps