In [ ]:
# run this code to login to https://okpy.org/ and setup the assignment for submission
from ist256 import okclient
ok = okclient.Homework()
The big-box hardware store House Depot has contracted you to write an App to estimate the amount of paint required to paint a room. Given that 1 gallon of paint covers 400 square feet, you must output the number of paint cans required to paint a rectangular room.
The program should input:
The program should output:
Example:
Enter length of room: 12
Enter width of room: 14
Enter height of room: 8
Total area to be painted: 416.00
Total gallons of paint requried: 2
HINT: Use the math.ceil() function to round up your number of gallons to the nearest whole number. You cannot sell fractional cans of paint!
In [1]:
import math # you need this to use math.ceil(), so we wrote this part of the code for you!!! LEAVE IT HERE!
# Step 2: write code here
Answer:
Answer:
math.ceil() in this program? In other words are you allowed to buy 3.75 gallons of paint?Answer:
Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?
To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.
Keep your response to between 100 and 250 words.
--== Write Your Reflection Below Here ==--
In [ ]:
# to save and turn in your work, execute this cell. Your latest submission will be graded.
ok.submit()