Tag Archives: ElectricAccount

Given the following two classes: (Exhibit) How should you write methods in the ElectricAccount class

Given the following two classes:How should you write methods in the ElectricAccount class at line n1 so that the member variable bill is always equal to the value of the member variable kwh multiplied by the member variable rate?Any amount of electricity used by a customer (represented by an instance of the customer class) must contribute to the… Read More »

Given the following two classes: (Exhibit) How should you write methods in the ElectricAccount class

Given the following two classes:How should you write methods in the ElectricAccount class at line n1 so that the member variable bill is always equal to the value of the member variable kwh multiplied by the member variable rate?Any amount of electricity used by a customer (represented by an instance of the customer class) must contribute to the… Read More »