Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An engineer wishes to build a bridge on a river. A file contains information about soil density at different possible sites where the bridge can

An engineer wishes to build a bridge on a river. A file contains information about soil density at different possible sites where the bridge can be built. Write a program that reads the file and makes recommendations to build the bridge or not for each site. The possible recommendations are "Safe to build the bridge", "Acceptable to build but not the best choice" and "Unsafe to build". The criteria are as follows: If both sides have a soil density above 2.5, it is safe. If only one side is over 2.5 but the other side is above 2.0, then it is acceptable to build. If both sides are 2.5 or below then it is unsafe to build. It is also unsafe to build if one side is above 2.5 but the other side is at 2.0 or below. The file has this format: We do not know how many sites. Each site is indicated on one line. Each line has three numbers: The first number is an integer (the site number), the second number is a double (the soil density of the east side), the third number also a double (the soil density of the west side). You must create data files yourself to test your program (use Notepad or other text editor or use Quincy in ASCII text mode).

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago