Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java please Required Skills Inventory - Use variables to name, store, and retrieve values - Use System. out. print to prompt the user for input

java please image text in transcribed
image text in transcribed
image text in transcribed
Required Skills Inventory - Use variables to name, store, and retrieve values - Use System. out. print to prompt the user for input - Use a Scanner to collect user input - Use math operators to construct expression - Use explicit cast operation or Math methods to round values - Output to console with System. out, printf - Use format specifiers to format floating point values Problem Description and Given Info Rosie's Road col 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- things like stoplights, and 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 1. There is one intersection for every mile of road 2. Each intersection has two stoplights, plus one additional stoplight for each lane 3. Stoplights cost $25,000 per light Example 1 Enter the number of miles of road 3.0 Enter the number of lanes on this road : 2 Number of intersections : 3 Number of stoplights : 12 cost of stoplights :$300000.00 Example 2 Enter the number of miles of road : 4.59 Enter the number of lanes on this road: 3 Number of intersections : 4 Number of stoplights: :20 Cost of stopliqhts $500000.00 For the given inputs, make sure that your program output looks exactly like the examples above (including spelling, capitalization, punctuation, spaces, and decimal points). Helpful info: There is one intersection for every mile of road - a 1 mile mile road has 1 intersection - 32 mile road has 2 intersections - a 2.99 mile road has 2 intersections Each intersection has two stoplights, plus one additional stoplight for each lane - a 1 lane road has 3 stoplights at each intersection. - a 2 lane road has 4 stoplights at each intersection - a 5 lane road has 7 stoplights at each intersection - a 2 lane road has 4 stoplights at each intersection - a 5 lane road has 7 stoplights at each intersection Need Help? Additional help resources are available by clicking on the words "Need Help?" at the bottom of this page, and search for help or ask a question! \begin{tabular}{l|l} LAB \\ ACrivitr & 5.12.1: Number of Stoplights (Individual Assignment) \end{tabular} 0/100

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_2

Step: 3

blur-text-image_3

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

Evaluate employees readiness for training. page 275

Answered: 1 week ago