Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a code using MIPS code (without loop or branch) Write a program to calculate the number of gallons of paint needed to paint a

Write a code using MIPS code (without loop or branch) image text in transcribed
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: 1. length of room (in feet) 2. width of room (in feet) 3. height of ceiling (in feet) 4. price of a gallon of wall paint 5. price of a gallon of ceiling paint Output: 1. your name 2. total number of square feet of walls 3. number of gallons of wall paint needed 4. total number of square feet of ceiling 5. number of gallons of ceiling paint needed 6. cost of wall paint 7. cost of ceiling paint 8. total cost

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

Be familiar with the different perspectives of service quality.

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago