Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Background: Paint is ubiquitous. It's everywhere. And it's applied by highly paid professionals called painters. One of the tasks they are required to perform before

image text in transcribed

Background: Paint is ubiquitous. It's everywhere. And it's applied by highly paid professionals called "painters". One of the tasks they are required to perform before they start painting is to calculate the amount of paint they will need for the job. This calculation usually includes false assumptions, overestimations, underestimations, misinterpretations, disambiguation's, and miscalculations. As a result, either too much or too little paint is mixed and purchased, costing the client or painter (depending on who takes on the risk) valuable money, useful for lunch. Specifications: You are to write a simple program to help a painter decide how much paint to buy for a job dependent on certain relevent and irrelevent input data. Here's how it works: N - { * n * s) + W)* (1 + 1/ na) where: N is the number of gallons of paint to purchase Pis 0.004, the International Painter's constant ne is the number of children in the vicinity of the structure to be painted s is the surface area to be painted Wis 1.2, the expected waste for any job na is the expected number of days to complete the job Important Notes: N must be an integer type since you can't buy partial gallons. You'll need to round up the calculation on the right-hand-side of this formula. If the result calculated for N above has no fractional part, add an extra gallon for safety sake. ne must be an integer type since you can't have partial children. No, you CAN'T! S should be a float type since it is! ng must be an integer type since the painter's union specifies in article 78394.888/33/5434A of the IPUC (International Painters Union code) that painters must be compensated for whole days. That's just how it is! Make your prompt for input friendly and clear. The same goes for the output. You should always start with a "welcoming" message in your programs. Something like: Welcome to the IPU calculator ... And your prompts and output should be something like: Please enter the Surface area to be painted: Background: Paint is ubiquitous. It's everywhere. And it's applied by highly paid professionals called "painters". One of the tasks they are required to perform before they start painting is to calculate the amount of paint they will need for the job. This calculation usually includes false assumptions, overestimations, underestimations, misinterpretations, disambiguation's, and miscalculations. As a result, either too much or too little paint is mixed and purchased, costing the client or painter (depending on who takes on the risk) valuable money, useful for lunch. Specifications: You are to write a simple program to help a painter decide how much paint to buy for a job dependent on certain relevent and irrelevent input data. Here's how it works: N - { * n * s) + W)* (1 + 1/ na) where: N is the number of gallons of paint to purchase Pis 0.004, the International Painter's constant ne is the number of children in the vicinity of the structure to be painted s is the surface area to be painted Wis 1.2, the expected waste for any job na is the expected number of days to complete the job Important Notes: N must be an integer type since you can't buy partial gallons. You'll need to round up the calculation on the right-hand-side of this formula. If the result calculated for N above has no fractional part, add an extra gallon for safety sake. ne must be an integer type since you can't have partial children. No, you CAN'T! S should be a float type since it is! ng must be an integer type since the painter's union specifies in article 78394.888/33/5434A of the IPUC (International Painters Union code) that painters must be compensated for whole days. That's just how it is! Make your prompt for input friendly and clear. The same goes for the output. You should always start with a "welcoming" message in your programs. Something like: Welcome to the IPU calculator ... And your prompts and output should be something like: Please enter the Surface area to be painted

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

Portfolio Performance Measurement And Benchmarking

Authors: Jon Christopherson, David Carino, Wayne Ferson

1st Edition

0071496653, 978-0071496650

More Books

Students also viewed these Finance questions

Question

Does it exceed two pages in length?

Answered: 1 week ago

Question

Does it avoid typos and grammatical errors?

Answered: 1 week ago