Question: Write MATLAB program to calculate electricity usage and produce related bill for domestic customer. The cost of electricity usage is based on the following

 Write MATLAB program to calculate electricity usage and produce related bill for 

Write MATLAB program to calculate electricity usage and produce related bill for domestic customer. The cost of electricity usage is based on the following tariff: Block Tariff (kWh) 0 - 200 201-300 > 300 Rate (RM) 0.218 0.334 0.516 The program produces the electric bill that has the following details: a) Customer ID b) Customer address c) Total cost that customer have to pay. d) Bill date e) Table with the following details, i) Block tariff ii) Block electricity usage in current block tariff iii) Rate (RM) in current block tariff iv) Cost (RM) in current block tariff v) Total of electricity usage and cost Block Tariff (kWh) Block electricity usage (kWh) Rate (RM) Cost (RM) Total User have to insert the customer ID and the amount of electricity usage (kWh). Then the program will identify customer address in the database, perform calculation based on the tariff and print the electric bill

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!