Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python help - The function should compute and return the total cost for the number of pounds of the specified alloy. - Note: Assume that

image text in transcribedpython help

- The function should compute and return the total cost for the number of pounds of the specified alloy. - Note: Assume that the user inputs will be valid; that is, the alloy number will indeed be 2024 or 7075 or 356 and the number of required pounds will be positive. Task 3 (of 3 ) Create a Python script, HW1p2_Task3_UCusername, to do the following: - Prompt the user for the Alloy Number (see Task 2). - Check to make sure the Alloy Number is valid - if not, continue to prompt for an Alloy Number until the user enters a valid value. - Prompt the user for required number of pounds (lbs.) of the alloy (use float not int). - Check to make sure the number of pounds is valid - if not continue to prompt until the user enters a positive number of pounds. - Call the function, Alloys, developed in Task 2 to determine the cost of the Alloy. - Output (print) the cost with two places behind the decimal point

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions