Question: Problem Description and Given Info Rosie's Road Co . is a new local construction company. They are interested in bidding on new highway construction projects

Problem Description and Given Info
Rosie's Road Co. is a new local construction company. They are interested in bidding on new highway construction projects around the city.
They've hired you to develop some software tools that they will use to help determine material needs and costs.
Road development is not only the asphalt you see - water and power conduits must be installed at the same time, and we have to account
for things like labor costs and how long it will take to develop a particular project.
The city is very regular grid, with one 4-way intersection at each mile of road. When asking for a quote, the city sends out the number of
linear miles of road, and how many total lanes (1 to 8).
Other Details
The trucks hauling asphalt have a maximum capacity of 5 US tons (10,000lbs)
The standard road lane is 12 feet wide.
Asphalt weighs 145 lbs per cubic foot
Asphalt costs $150 per ton
Power and water utilities are run under the road as part of all road projects
Power conduit is available only in 20 ft . lengths - each length costs $400
Water main pipe is available only in 10 ft . lengths - each length costs $200
There is one intersection for every mile of road
Stoplights cost $25,000 per light (look it up, that's real!)
Each intersection has two stoplights, plus one additional stoplight for each lane
Work days are 8-hour days
All workers are paid $20 per hour.
Crew members can complete an amount of work in a specified time according to the equation and table below: \table[[Crew Members,Miles,Lanes,Days to Complete],[1,1,1,50],[1,1,2,100],[1,2,1,100],[1,2,2,200],[2,1,1,25],[2,1,2,50],[2,2,1,50],[2,2,2,100]] Part 2-truckloads_of_asphalt Function
Write a function named truckloads_of_asphalt that takes three arguments (a float and two ints) and returns a value (an int).
The first argument will be the length of the road project in miles, the second argument will be the number of lanes for this road, and the
third argument will be the depth of the asphalt in inches. When called, this function should compute and return the number of truckloads of
asphalt needed for this road project.
Function Header
Here is a template for you to follow for this function:
def truckloads_of_asphalt(miles, lanes, depth_inches):and the given info on the amount of asphalt a truck can carryIt is probably a good idea to break this calculation down into several stepsand store the result of each step in a variable. Function Body
First, convert the number of miles of road to the number of feet of road and store this value in a variable named road_length. We do this
because we will need to compute the total cubic feet of asphalt needed. There are 5280 feet in a mile.
Second, compute the total width of the road in feet, and store this value in a variable named road_width. We do this because we will need
to compute the total cubic feet of asphalt needed. Remember that each lane is 12 feet wide.
Third, compute the depth of the road in feet, and store this value in a variable named road_depth. We do this because we will need to
compute the total cubic feet of asphalt needed. There are 12 inches in a foot.
Fourth, compute the total volume of asphalt in cubic feet (the road_length * road_width * road_depth), and store this value in a
variable named asphalt_cubic_feet.
Fifth, calculate the total weight of asphalt needed in pounds. Remember that asphalt weighs 145 pounds per cubic foot. Store this value in
a variable named asphalt_pounds.
Sixth, to approximate the number of truckloads of asphalt needed, divide the asphalt_pounds by the number of pounds that a truck can
carry and store this value in a variable named approximate_truck_loads. Remember that a truck can carry 5 US tons (10,000 lbs).
seventh, round up the approximatetruckloads to find the actual number of truckloads needed for this road project. Store this result in a
variable named total_truckloads. You may use the math. ceil function to perform the necessary rounding operation.
Finally, return the value stored in total_truckloads.
Examples
truckloads_of_asphalt(1.0,1,12) should return the value 919
truckloads_of_asphalt(1.0,2,12) should return the value 1838
truckloads_of_asphalt(2.0,1,24) should return the value 3675
truckloads_of_asphalt(2.75,3,10) should return the value 6317
You may wish to write some additional code to test your function. Please be sure that you delete (or comment out) any test code before
you submit your solution. The only code in your solution should be the required function definition.
Problem Description and Given Info Rosie's Road

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!