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

python help - The function should compute and return the total costpython 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!