- Create a java class Customer.java that will represent a watercompany customer. It should contain the attributes, constructors,and methods listed below, and when finished should be able to allowthe included file TestWaterBills.java to work correctly.
- Customer class
- Attributes
- firstName: String type, initial value null
- lastName: String type, initial value null
- streetAddress: String type, initial value null
- city: String type, initial value null
- state: String type, initial value null
- zip: String type, initial value null
- previousMeterReading: int type, initial value 0
- currentMeterReading: int type, initial value 0
- gallonsUsed: int type, initial value 0
- currentCharges: double type, initial value 0.0
- Constructors
- Customer(): Default constructor
- Customer(String first, String last, String street, String city,String state, String zip, int previousReading)
- Methods
- setCurrentMeterReading(int reading):
OROR
- setCurrentMeterReading(int reading):
- Attributes