The Electricity Bill Calculator is an application-based micro project that calculates the month’s electricity bill based on the appliances or loads and units consumed. People who do not have a technical understanding of calculating power bills can use this program to forecast/calculate their electricity bills. The application should have the following features:
• To display the Meter Number
• To display the previous meter reading
• Facility to enter present meter-reading
• To display the no. of units consumed
• To display the complete Tariff Structure (Domestic, Non-Domestic, Industrial)
• Provision to input the no. of units consumed per month
• To display the bill-amount payable as per the tariff structure
• To display the due date of the payment
Note: Assumptions can be made wherever necessary and list them. You must execute the program and submit the program logic, sample input and output along with the necessary documentation for this question.
Section 2: Assembly Language Programming Lab
Program logic in Python that implements the features you described:
# Tariff structure (assumptions: domestic tariff = 0.50, non-domestic = 0.60, industrial = 0.70)
TARIFF_DOMESTIC = 0.50
TARIFF_NON_DOMESTIC = 0.60
TARIFF_INDUSTRIAL = 0.70
# Due date (assumptions: bill due after 20 days from the bill generation date)
DUE_DATE = 20
def calculate_bill(meter_number, prev_reading, present_reading, units_consumed, category):
# Calculate the units consumed
units_consumed = present_reading - prev_reading
# Determine the tariff
if
_____ ____ _________ ___ ___ ___ _________ ___ _________ _________ _____ _______.
_____ _____ ________ ______ __________.
________ ____ _____ ________ ___ _________ _____ _____ __________ _________ __________.
_____ _______ _________ _______ ______ ____ _______.
__________ ____ _________ ___ ________ ______ ________ _____ _________ ________ ________.
____ _______ ___ _______ __________ ___ ________ ______ _________ ______ ______ ______.
_____ ____ _______ _______ ________.
___ _________ ______ _______ _____.
________ __________ ___ __________ ___.
_________ ______ _____ ______ _________ _____ _____.
____ ____ ________ ____ ___ _______.
_____ _______ ____ _____ ______ ___ _________ ________ ____ ______ ________.
____ _____ ____ _________ _________ ________.
__________ _____ _______ __________ __________ _________ __________ __________ ___.
_________ ___ ________ _______ _______.
__________ ____ __________ ____ _________ _________ _____ ________ __________.
___ __________ _________ _______ ________ _________ ____ _________ __________.
_______ ________ ____ ____ _____ _________ ______ _________ ____.
_______ ___ ___ ______ _____.
_____ ______ ___ __________ _________ _______.
___ ______ _____ ______ ______ _____ _____ ________.
_______ ________ __________ ________ ___ ________ _______ _____ ________ _________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required