Question
Please write it in MIPS programming language Write a program to calculate the number of gallons of paint needed to paint a room. Assume that
Please write it in MIPS programming language
Write a program to calculate the number of gallons of paint needed to paint a room. Assume that a gallon covers 325 square feet. Assume that you are painting two coats on all four walls. You are painting one coat on the ceiling, using ceiling paint which is a different kind of paint. Remember that if there is any fractional part when calculating the number of gallons you need to round up so you are sure to have enough paint.
Input:
length of room (in feet)
width of room (in feet)
height of ceiling (in feet)
price of a gallon of wall paint
price of a gallon of ceiling paint
Output:
your name
total number of square feet of walls
number of gallons of wall paint needed
total number of square feet of ceiling
number of gallons of ceiling paint needed
cost of wall paint
cost of ceiling paint
total cost
Make sure your program includes comments. You need comments at the top with your name and lab number, and a comment for every line of executable code. Please remember, your comments should say things like "calculate the square footage of the ceiling" rather than something like "multiply $t3 and $t4". The exception to the "every line of code" rule is syscalls: you can have one comment for each syscall and its setup. This comment should tell what is being read or written.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started