Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA language CSE110 Principles of Programming Assignment 02.10 pts Assignment 02:100 pts CSE110 Principles of Programming Test #2 Given Inputs Length of road project (miles)

image text in transcribedJAVA language

image text in transcribed

CSE110 Principles of Programming Assignment 02.10 pts Assignment 02:100 pts CSE110 Principles of Programming Test #2 Given Inputs Length of road project (miles) : 3 Number of lanes Depth of asphalt (inches) 18 Days to complete project : 50 1. The trucks hauling asphalt have a maximum capacity of 5 US tons (10,000 lbs 2. The standard road lane is 12 feet wide. 3. Asphalt welghs 150 lbs per cubic foot 4. Asphalt costs $200 per ton 5. Power and water utilities are run in a conduit pipe under the road as part of all road projects 6. Conduit pipe is available only in 24 ft. lengths cach length costs $500 7. There is one intersection for every mile of road a. a 1 mile road has 1 intersection b. a 2 mile road has Z intersections c. a 2.99 mile road has 2 intersections 8. Stoplights cost $25,000 per light 9. Each intersection has two stoplights, plus one additional stoplight for each lane a. a 1 lane road has three stop lights at each intersection b. a 2 lane road has four stop lights at each intersection L. a 3 lane road has five stop lights at each intersection 10. Work days are 8-hour days 11. All workers are paid $25 per hour. 12. Crew members can complete an amount of work in a specified time according to the equation below: Expected Output --- Amount of materials needed --- Truckloads of Asphalt : 8554 Stoplights : 12 Conduit pipes 668 Crew members needed : 6 === Cost of Materials E EEEE==== Cost of Asphalt : $8554800.00 Cost of Stoplights : $3e0neo.80 Cost of Conduit pipes : $330000.0 Cost of Labor : $6e0ne.00 === Total Cost of Project ======== Total cost of project : $9244800.00 50. miles . lanes crew Member == days Test Data Test #3 Given Inputs Length of road project (miles) : 1 Number of lanes Depth of asphalt (inches) : 1 Days to complete project Test #1 Given Inputs Length of road project (miles) : 2.75 Number of lanes Depth of asphalt (inches) 12 Days to complete project 30 Expected Output === Amount of materials needed === Truckloads of Asphalt : 7841 Stoplights ! 10 Conduit pipes 695 Crew members needed 14 === Cost of Materials ============ Cost of Asphalt ! $7841900.ee Cost of Stoplights : $250000.00 Cost of Conduit pipes : $392588.oe Cost of Labor $84800.00 --- Total Cost of Project -------- Total cost of project : $8477580.60 Expected Output === Amount of materials needed === Truckloads of Asphalt : 88 Stoplights Conduit pipes : 220 Crew members needed : 50 === Cost of Materials ============ Cost of Asphalt : $80080.80 Cost of Stoplights : $75000.00 Cost of Conduit pipes : $110000.00 Cost of Labor : $1ease, === Total Cost of Protect ======== Total cost of project : $275880.80 CE11 Principles of Programming Test2 Gynas Length of road project (niles) : 3 Number of lanes Depth of asphalt (inches) : 18 Days to complete project 1. The trucks having asphalt have a maximum capacity of S US tons (10,000 lbs) 2 The standard readlane is 12 feet wide. 3. Asphalt weighs 150 lbs per cubic foot 4. Asphalt costs $200 perton 5. Power and water utilities are run in a conduit pipe under the road as part of allroad projects 6. Conduit pipe is available only in 24 ft. lengthseach length costs $500 7. There is one intersection for every mile of road a. al mile road has 1 intersection b. a 2 mile road has 2 intersections 299 mile road has 2 intersections 8. Stoplights ou $25,000 per light 9. Each intersection has two stoplights, plus one additional stoplight for each lane a. a 1 lane road has three stop lights at each intersection b. a 2 lane road has four stop lights at each intersection c a 3 lane road has five stop lights at each intersection 10. Work days are 8-hour days 11. All workers are paid $25 per hour 12. Crew members can complete an amount of work in a specified in according to the ton below. ED Amount of materials needed Truckloads of Asphalt : 8554 Stoplights Conduit pipes Cre e ps needed w Cost of Materials Cost of Asphalt $8554eee. Cost of Stoplights $300e.ee Cost of Conduit pipes $330000.00 $62800. - Total Cost of Project Total cost of project : $9244000. 50 miles . lanes crew Member = days Test Data Length of road project (miles): 1 Number of lanes Depth of asphalt (inches) Days to complete project Teat.1 Length of road project (miles) : 2.75 Number of lanes Depth of asphalt (inches) Days to complete project Amount of materials needed Truckloads of Asphalt : 7841 Stoplights Conduit pipes Crew nenbers needed 14 www Cost of Materials - Cost of Asphalt : $7841000.00 Cost of Stoplights $2500ee.ee Cost of Conduit pipes 1 $1925ee.ee Cost of Labor $84292.ee - Total cost of project w Total cost of project $847750e.ee - Amount of materials needed Truckloads of Asphalt : 80 Stoplights Conduit pipes Crew members needed 58 w Cost of Materials Cost of Asphalt ISB0000.ee Cost of Stoplights $75000.00 Cost of Conduit pipes : $110000.0 Cost of Labor Total Cost of Project - Total cost of project : $27500e.ee

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions