Computer Science, asked by mantoshguha50, 4 months ago

Write a Java Class Ebill with the following description
Instance variable : String n – to store the name of the Customer
int units- to store the number of unit consumed
double bill- to store the bill to be paid by the customer.
Member methods:- void input() – to accept the name and unit consumed by the customer.
void calculate() – to calculate the bill to be paid on the following :-
Number of units consumed Rate per unit
First 50 units 1.00
Next 100 units 2.00
Next 100 units 4.00
Above 250 units 6.50
void display() – to display the bill in the following format:-

Answers

Answered by cnusinu895
0

Answer:

hey my father is a expert in teaching Java he 3 lakh in per month and his experience is 15 years

Similar questions