Instructions: 1. Develop an algorithm and write a Python program that calculates the time required for two painters to paint a room based on how fast each painter can paint the room alone: a. You must develop a detailed algorithm using pseudo-code that is included as a sequence of comments in your source code file. You must have five steps in your algorithm. b. You will then implement a solution in Python that satisfies each line of your pseudo-code. c. The program must ask the user to provide the time, in hours, for Painter 1 to paint the room by themselves and do the same for Painter 2. The user must be able to enter a floating point number for the time in hours. d. The program will then calculate the time to paint the room based on both painters working at their normal rate of time and display the result. e. The output must be formatted to show two places to the right of the decimal point. f. Your program’s output must match the expected output in the screenshot below and the program must generate a correct output with any valid inputs.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 10E
icon
Related questions
icon
Concept explainers
Question

Instructions: 1. Develop an algorithm and write a Python program that calculates the time required for two painters to paint a room based on how fast each painter can paint the room alone: a. You must develop a detailed algorithm using pseudo-code that is included as a sequence of comments in your source code file. You must have five steps in your algorithm. b. You will then implement a solution in Python that satisfies each line of your pseudo-code. c. The program must ask the user to provide the time, in hours, for Painter 1 to paint the room by themselves and do the same for Painter 2. The user must be able to enter a floating point number for the time in hours. d. The program will then calculate the time to paint the room based on both painters working at their normal rate of time and display the result. e. The output must be formatted to show two places to the right of the decimal point. f. Your program’s output must match the expected output in the screenshot below and the program must generate a correct output with any valid inputs.

Shell
>>> Run -c $EDITOR_CONTENT
Hours required for Painter 1 to paint the room alone: 4
Hours required for Painter 2 to paint the room alone: 2
Time required if they work together: 1.33 hours
>>>
4
Transcribed Image Text:Shell >>> Run -c $EDITOR_CONTENT Hours required for Painter 1 to paint the room alone: 4 Hours required for Painter 2 to paint the room alone: 2 Time required if they work together: 1.33 hours >>> 4
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT