Question: 1. Write a MIPS assembly language program that reads a customer's current and previous meter readings of electricity and a month to compute its electricity
1. Write a MIPS assembly language program that reads a customer's current and previous meter readings of electricity and a month to compute its electricity bill. If a customer spent 0 or less (technically this should not happen, though) KWH (kilowatt-hours) that is computed by current meter reading - previous meter reading, then the program should print out "There is no bill to pay. ". If a customer spent less than or equals to 200 KWH in a month, then the payment should be 10 dollars. If a customer spent more than 200 KWH in a month of May, June, July, August, or September, then the payment is computed by: payment = 10 + (used KWH - 200) / 15; If a customer spent more than 300 KWH in any other month, then the payment is compute by: payment = 10 + (used KWH - 200) /20; Then if the payment is greater than 0, it should print out the payment amount, along with its used KWH.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
