Question

CHALLENGE ACTIVITY 3.2.1: Gallons of paint needed to paint walls. Finish the program to compute how many gallons of paint are
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Screenshot of the code:

gallons_paint = 0.0 # Prompt the user to enter the input in float wall_area = float(input) # Assign gallons_paint below You

Sample Output

250. 0 0.7142857142857143 28.11281143

Code to copy:

gallons_paint = 0.0

# Prompt the user to enter the input in float

wall_area = float(input())

# Assign gallons_paint below

'''Your solution goes here'''

gallons_paint = wall_area/350.0

# Print the calculated value

print(gallons_paint)

Add a comment
Know the answer?
Add Answer to:
CHALLENGE ACTIVITY 3.2.1: Gallons of paint needed to paint walls. Finish the program to compute how...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 30. How many gallons of primer and paint are needed to paint the walls of the...

    30. How many gallons of primer and paint are needed to paint the walls of the office? The walls are to receive one coat of primer and two coats of paint. The exterior walls only need paint on the interior sides. The walls are 8 feet high. One gallon of primer will cover 275 square feet and one gallon of paint will cover 350 square feet with a single coat. Do not make deductions for doors. (20 points) MAIN ROOM...

  • 30. How many gallons of primer and paint are needed to paint the walls of the...

    30. How many gallons of primer and paint are needed to paint the walls of the office? The walls are to receive one coat of primer and two coats of paint. The exterior walls only need paint on the interior sides. The walls are 8 feet high. One gallon of primer will cover 275 square feet and one gallon of paint will cover 350 square feet with a single coat. Do not make deductions for doors. (20 points) MAIN ROOM...

  • I need to write a paint job estimator program in python. I have most of it...

    I need to write a paint job estimator program in python. I have most of it down but i keep getting errors and I dont know how to fix it or what im doing worng specs: A painting company has determined that for every 350 square feet of wall space, one gallon of paint and six hours of labor are required. The company charges $62.25 per hour for labor. Write a program call paintjobestimator.py that asks the user to enter...

  • How much paint needed to paint the walls Interior in the Figure with one coat of...

    How much paint needed to paint the walls Interior in the Figure with one coat of primer and two coats of batex paint? The colligi 8 foot inches From one on of brimer will cover 250 square feet of wall and one rallon of latex paint will cover 400 square feet of wall with a single coat The doors 3-foot wide by 7-foot high Exclude door comes painted so exclude - 17-0" 12-0" 10'-0" 23-0" Question 5 (3 points) Calculate...

  • please explain in C++ only This program determines how much it cost to paint a room...

    please explain in C++ only This program determines how much it cost to paint a room Please write a program which determines and prints out three results. 1. The number of exact gallons of paint to paint the walls and the ceiling (NOT THE FLOOR) of the room if 1 gallon is enough to paint 400 square feet. 2. How many gallons of paint you need to buy since you cannot buy part of a gallon. So if you need...

  • (1) Prompt the user to input a wall's height and width. Calculate and output the wall's...

    (1) Prompt the user to input a wall's height and width. Calculate and output the wall's area. (Submit for 2 points). Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 square feet (2) Extend to also calculate and output the amount of paint in gallons needed to paint the wall. Assume a gallon of paint covers 350 square feet. Store this value using a const double variable. (Submit for 2 points, so 4 points total). Enter...

  • This exercise requires designing a program which solves the problem described in the problem statement below....

    This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments as necessary in your pseudo-code and the Java program. Your solution must include these components: Flowchart Pseudo-code Hierarchy Chart Program Coded Program Output Problem Statement A painting company has determined that to paint 115 square feet of wall space, the task will require one gallon of paint and 8 hours of labor. The company charges $20.00 per hour for labor. Design a...

  • My library > CS 151L: Computer Program... ZyBooks 58 Nested loops zyBooks catalog Help/FAQ CHALLENGE ACTIVITY...

    My library > CS 151L: Computer Program... ZyBooks 58 Nested loops zyBooks catalog Help/FAQ CHALLENGE ACTIVITY 5.8.1: Nested loops: Print rectangle Given the number of rows and the number of columns, write nested loops to print a rectangle. Sample output with inputs: 23 1 num_rows - int(input ) nunlcols - Int(input) *** Your solution goes here *** print("*, end.' ") printOI MacBook Pro 0

  • CHALLENGE ACTIVITY CCY7.10.5: Read user input and print to output. Assign user_str with a string from...

    CHALLENGE ACTIVITY CCY7.10.5: Read user input and print to output. Assign user_str with a string from user input, with the prompt: 'Enter a string:" Hint- Replace the ? in the following code: user_str?('Enter a string: ') Note: These activities may test code with different pre-entered test values, thus blank print statements are placed after the prompt so that output will appear on the following line. This activity will perform two tests: the first with user input of "Hello", the second...

  • code in C++ Create a program that uses the pass by reference operator instead of the...

    code in C++ Create a program that uses the pass by reference operator instead of the return command. Your main program will need to: create empty variables call void function 1 with no input to display your name to the screen call function 2 to collect the square feet that a gallon of paint covers from user call function 2 to collect the square feet of wall that needs to be painted call function 3 to calculate the number of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT