Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Description and Given Info Within the main method in the Assignment02.java file, you must write a program to compute the materials and costs required

image text in transcribed

Problem Description and Given Info Within the main method in the Assignment02.java file, you must write a program to compute the materials and costs required for a specified road construction project. Your program must prompt the user to enter the 4 input values described below. It must collect the user's input and store these values in 4 different variables. It must collect the inputs in the order shown below, and it must produce outputs that match the Test examples exactly Inputs 1. Length of road project (miles) - data type double 2. Number of lanes data type int 3. Depth of asphalt (inches) data type int 4. Days to complete project - data type int Outputs 1. Truckloads of Asphalt -rounded up 2. Stoplights 3. Conduit Pipes -rounded up 4. Crew members -rounded up 5. Cost of Asphalt -rounded up to nearest full truckload 6. Cost of Stoplights 7. Cost of Conduit Pipes 8. Cost of Labor 9. Total Cost Other Details Rosie's Road Co. is a new construction company. They are interested in bidding on new highway construction projects around the city. They've hired you to develop a software tool 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 complete 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). P.Miller 1 CSE110 Principles of Programming Here's some information that you might find useful as you complete this challenge. Assignment 02.100 pts a 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 weighs 160 lbs per cubic foot 4. Asphalt costs $230 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 20 ft. lengths - each length costs $600 7. There is one intersection for every mile of road a 1 mile road has 1 intersection b. a 2 mile road has 2 intersections a 2.99 mile road has 2 intersections 8. Stoplights cost $27,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 a 3 lane road has five stop lights at each intersection 10. Work days are 8-hour days 11. All workers are paid $28 per hour. 12. Crew members can complete an amount of work in a specified time according to the equation below: c C. 50 miles . lanes crew Member = days

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions