Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Programming Challenge: Write a Python 3 program that calculates the amount of coating and cost of the coating for covering the entire outside of

Python Programming Challenge: Write a Python 3 program that calculates the amount of coating and cost of the coating for covering the entire outside of a cylinder. The user is to be prompted for the radius and height of the cylinder and the cost per pint of coating. The program is to calculate the number of whole pints required and the cost of the coating. It has been determined that 8 pints of a coating can cover 400 square feet of surface area for all types of coatings. Partial pints cannot be used, only full pints. The program is to handle exceptions and not crash based on user input. A negative radius, height, or cost per pint are not to be accepted from the user. The calculated number of pints is to be presented to the user as an integer and the cost is to be presented with two decimal places after the decimal point and the $ symbol before the value (example: $54.21). After each calculation the user is to be prompted if they want to perform another calculation.

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions