79400429

Date: 2025-01-30 15:47:49
Score: 1
Natty:
Report link

In your Python program file, write code to prompt the user for three prices of vehicles and then compute and display the average price of the three vehicles. To do this do the following: a. Add a comment at the top of the file that states the following: i. Part 1 – Compute average price of three vehicles b. Prompt the user for car price 1 and store it in a variable called price1. c. Convert the price1 variable to a float. Note: When the user enters the price, you may assume they will enter it without a $. For example, a car price of $12,345.67, would be entered as 12345.67 at the prompt – no commas or dollar sign. d. Save and execute the program and verify this works correctly. e. Prompt the user for car price 2 and store it in a variable called price2. f. Convert the price2 variable to a float. g. Save and execute the program and verify this works correctly. h. Prompt the user for car price 3 and store it in a variable called price3. i. j. Convert the price3 variable to a float. Save and execute the program and verify this works correctly. 1 of 3 k. Sum up price1, price2, and price3 and divide the result by 3 and store it in a variable called average_price. l. Print out the average price. Make sure you print out the average price with a dollar sign. m. Save and execute the program and verify this works correctly.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Luci johnson