Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use java language pls Assignment Requirements For this assignment you are given the following files: Assignment02.java (you must complete this file) Problem Description and Given

use java language pls image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Assignment Requirements For this assignment you are given the following files: Assignment02.java (you must complete this file) 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. - data type double - data type int - data type int - data type int -rounded up Inputs 1. Length of road project (miles) 2. Number of lanes 3. Depth of asphalt (inches) 4. Days to complete project Outputs 1. Truckloads of Asphalt 2. Stoplights 3. Conduit Pipes 4. Crew members Cost of Asphalt 6. Cost of Stoplights 7. Cost of Conduit Pipes 8. Cost of Labor 9. Total Cost -rounded up -rounded up 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). Here's some information that you might find useful as you complete this challenge. 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-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 Here's some information that you might find useful as you complete this challenge. CSEL Principles of Program 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 150 lbs per cubic foot 4. Asphalt costs $200 perton S 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 - each 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 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. al 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 time according to the equation below: crew Member = 50-miles - lanes days Test Data Test Glys. lt Length of road project (miles) : 2.75 Number of lanes Depth of asphalt (inches) : 12 Days to complete project ses Expected to Amount of waterials needed Truckloads of Asphalt 7841 Stoplights Conduit pipes Crew members needed : 14 w Cost of Materials w Cost of Asphalt : $7410ee.ee Cost of Stoplights $250000.00 Cost of Conduit pipes ! $3250e.ee Cost of Labor $84660. Total cost of project Total cost of project : $8477500.00 Test #2 Given Inputs Length of road project (miles) : 3 Number of lanes : 2 Depth of asphalt (inches) Days to complete project : 50 Expected Output === Amount of materials needed === Truckloads of Asphalt : 8554 Stoplights : 12 Conduit pipes : 660 Crew members needed : 6 === Cost of Materials ============ Cost of Asphalt : $8554000.00 Cost of Stoplights : $300000.00 Cost of Conduit pipes : $330000.00 Cost of Labor $60000.00 === Total Cost of Project ======== Total cost of project : $9244000.00 Test #3 Given Inputs Length of road project (miles) : 1 Number of lanes Depth of asphalt (inches) : 1 Days to complete project : 1 1 Expected Output === Amount of materials needed === Truckloads of Asphalt : 80 Stoplights Conduit pipes : 220 Crew members needed : 50 === Cost of Materials ============ Cost of Asphalt : $80000.00 Cost of Stoplights : $75000.00 Cost of Conduit pipes : $110000.00 Cost of Labor $10000.00 === Total Cost of Project ======== Total cost of project : $275000.00 Assignment 02:100 pts CSE110 Principles of Programming What to turn in For this assignment you must upload the following files by the due date. Assignment02.java Any assignment submitted less than 24 hours after the posted due date will have 10 points deducted. Any assignment submitted more than 24 hour after the posted due date will receive a zero in the grade book. Points 10 Grading Rubric Criteria All required files are submitted Each file includes a comment header with the following information: CSE 110 : Author & Description: Partial credit can be awarded Code is neat and well organized Good naming conventions for all identifiers Good use of whitespace Descriptive comments Partial credit can be awarded Code compiles with no syntax errors No Partial credit can be awarded No credit will be awarded for structure or logic if your code does not compile Code passes structure tests Code collects and stores 4 inputs Code computes and stores 9 values Code outputs a results Partial credit can be awarded Code passes logic tests Partial credit is awarded based on number of tests passed No credit will be awarded for logic if your code does not pass all structure tests See test examples (#1 - #3) above in these instructions TOTAL 20 30 (10) (10) 30 100 8:32 o Assignment02.java che 1/ CSE 110 : // Assignment : Cassignment #> // Author : & // Description : import java.util.Scanner; public class Assignment 02 { public static void main(String[] args) { // declare and instantiate a Scanner // declare and initialize variables 1/ collect inputs 1/ compute required values // display results 5 55 m Assignment Requirements For this assignment you are given the following files: Assignment02.java (you must complete this file) 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. - data type double - data type int - data type int - data type int -rounded up Inputs 1. Length of road project (miles) 2. Number of lanes 3. Depth of asphalt (inches) 4. Days to complete project Outputs 1. Truckloads of Asphalt 2. Stoplights 3. Conduit Pipes 4. Crew members Cost of Asphalt 6. Cost of Stoplights 7. Cost of Conduit Pipes 8. Cost of Labor 9. Total Cost -rounded up -rounded up 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). Here's some information that you might find useful as you complete this challenge. 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-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 Here's some information that you might find useful as you complete this challenge. CSEL Principles of Program 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 150 lbs per cubic foot 4. Asphalt costs $200 perton S 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 - each 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 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. al 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 time according to the equation below: crew Member = 50-miles - lanes days Test Data Test Glys. lt Length of road project (miles) : 2.75 Number of lanes Depth of asphalt (inches) : 12 Days to complete project ses Expected to Amount of waterials needed Truckloads of Asphalt 7841 Stoplights Conduit pipes Crew members needed : 14 w Cost of Materials w Cost of Asphalt : $7410ee.ee Cost of Stoplights $250000.00 Cost of Conduit pipes ! $3250e.ee Cost of Labor $84660. Total cost of project Total cost of project : $8477500.00 Test #2 Given Inputs Length of road project (miles) : 3 Number of lanes : 2 Depth of asphalt (inches) Days to complete project : 50 Expected Output === Amount of materials needed === Truckloads of Asphalt : 8554 Stoplights : 12 Conduit pipes : 660 Crew members needed : 6 === Cost of Materials ============ Cost of Asphalt : $8554000.00 Cost of Stoplights : $300000.00 Cost of Conduit pipes : $330000.00 Cost of Labor $60000.00 === Total Cost of Project ======== Total cost of project : $9244000.00 Test #3 Given Inputs Length of road project (miles) : 1 Number of lanes Depth of asphalt (inches) : 1 Days to complete project : 1 1 Expected Output === Amount of materials needed === Truckloads of Asphalt : 80 Stoplights Conduit pipes : 220 Crew members needed : 50 === Cost of Materials ============ Cost of Asphalt : $80000.00 Cost of Stoplights : $75000.00 Cost of Conduit pipes : $110000.00 Cost of Labor $10000.00 === Total Cost of Project ======== Total cost of project : $275000.00 Assignment 02:100 pts CSE110 Principles of Programming What to turn in For this assignment you must upload the following files by the due date. Assignment02.java Any assignment submitted less than 24 hours after the posted due date will have 10 points deducted. Any assignment submitted more than 24 hour after the posted due date will receive a zero in the grade book. Points 10 Grading Rubric Criteria All required files are submitted Each file includes a comment header with the following information: CSE 110 : Author & Description: Partial credit can be awarded Code is neat and well organized Good naming conventions for all identifiers Good use of whitespace Descriptive comments Partial credit can be awarded Code compiles with no syntax errors No Partial credit can be awarded No credit will be awarded for structure or logic if your code does not compile Code passes structure tests Code collects and stores 4 inputs Code computes and stores 9 values Code outputs a results Partial credit can be awarded Code passes logic tests Partial credit is awarded based on number of tests passed No credit will be awarded for logic if your code does not pass all structure tests See test examples (#1 - #3) above in these instructions TOTAL 20 30 (10) (10) 30 100 8:32 o Assignment02.java che 1/ CSE 110 : // Assignment : Cassignment #> // Author : & // Description : import java.util.Scanner; public class Assignment 02 { public static void main(String[] args) { // declare and instantiate a Scanner // declare and initialize variables 1/ collect inputs 1/ compute required values // display results 5 55 m

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions