Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use quincy An engineer wishes to build a bridge on a river. A file contains information about soil density at different possible sites where the
Use quincy
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started