[solved]-Write Python Class Definition Called Utilitybill Represents Monthly Electricity Bill Bill Q39015394
Write a Python class definition called UtilityBill whichrepresents a monthly electricity bill. A bill contains thefollowing pieces of information:
- customer name (default value is the empty string)
- meter number (default value is 0)
- number of kilowatt hours (kwh) used (default value is 0)
Include the following methods:
- a constructor which given a customer name, meter number and thenumber of kilowatt hours used, creates a UtilityBill object (besure to account for the default values)
- an accessor method for each attribute
- a mutator method for each attribute
- a method which computes and returns the monthly charge. Thecharge is calculated as follows:
- basic charge is $15.99
- the first 0 to 1000 kwh (inclusive) is $0.0879 per kwh
- kilowatt hours over 1000 kwh is $0.09719 per kwh
- 15% tax is to be added
Expert Answer
Answer to Write a Python class definition called UtilityBill which represents a monthly electricity bill. A bill contains the foll… . . .
OR

