Question: # make any imports you may need here # include copies of each of the functions that you created # for the four previous parts

# make any imports you may need here
# include copies of each of the functions that you created
# for the four previous parts of this challenge here
# use the template below to write a complete and functioning program
# =========================================================
# Collect the user inputs. Remember that Python's input
# function always returns a string, so you may need to cast
# or convert the user inputs to float or int.
# --Prompt user to enter length of road project (in miles)
# --Be sure to store the input in a variable
# --Prompt user to enter number of lanes
# --Be sure to store the input in a variable
# --Prompt user to enter depth of asphalt (in inches)
# --Be sure to store the input in a variable
# --Prompt user to enter days to complete project
# --Be sure to store the input in a variable
#----------------------------------------------------------
# =========================================================
# Use the functions you created to calculate and store the
# amount of materials and resources needed for the project.
# you will pass the values that you collected from the user
# to these functions as they are needed.
# --call function to get truck loads of asphalt and store return value in a variable named asphalt_truckloads
# --call function to get number of stoplights and store return value in a variable named stoplights
# --call function to get number of water pipes and store return value in a variable named water_pipes
# --call function to get number of power pipes and store return value in a variable named power_pipes
# --call function to get number of crew members and store return value in a variable named number_of_crew_members
# Use the values you calculate and stored above to compute
# the cost of each item
# --calculate cost of asphalt and store in a variable named cost_of_asphalt
# --calculate cost of stoplights and store in a variable named cost_of_stoplights
# --calculate cost of water pipes and store in a variable named cost_of_water_pipes
# --calculate cost of power pipes and store in a variable named cost_of_power_pipes
# --calculate cost of labor (crew members) and store in a variable named cost_of_labor
# --calculate total cost of all materials plus labor and store in a variable named total_cost
#----------------------------------------------------------
# =========================================================
# display the results for the user.
print("=== Amount of materials needed ===")
print("Truckloads of Asphalt :", asphalt_truckloads)
print("Stoplights :", stoplights)
print("Water pipes :", water_pipes)
print("Power pipes :", power_pipes)
print("Crew members needed :", number_of_crew_members)
print("=== Cost of Materials ============")
print("Cost of Asphalt :", cost_of_asphalt)
print("Cost of Stoplights :", cost_of_stoplights)
print("Cost of Water pipes :", cost_of_water_pipes)
print("Cost of Power pipes :", cost_of_power_pipes)
print("Cost of Labor :", cost_of_labor)
print("=== Total Cost of Project ========")
print("Total cost of project :", total_cost)
#----------------------------------------------------------

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 Programming Questions!