A concrete channel to bring water to Crystal Lake is being designed. It will have vertical walls and be 15 feet wide. It will be 10 feet deep, have a slope of .0015 feet/foot, and a roughness coefficient of .014. How deep will the water be when 1000 cubic feet per second is flowing through the channel? To solve this problem, we can use Manning's equation 1.486 AR/3s\/2 N where Q is the flow of water (cubic feet per second), N is the roughness coefficient (unitless), A is the area (square feet), S is the slope (feet/foot), and R is the hydraulic radius (feet).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

C language programing question 

A concrete channel to bring water to Crystal Lake is being designed. It will have vertical walls and be 15
feet wide. It will be 10 feet deep, have a slope of .0015 feet/foot, and a roughness coefficient of .014. How
deep will the water be when 1000 cubic feet per second is flowing through the channel?
To solve this problem, we can use Manning's equation
1.486
"AR²/³g\/2
N
where Q is the flow of water (cubic feet per second), N is the roughness coefficient (unitless), A is the area
(square feet), S is the slope (feet/foot), and R is the hydraulic radius (feet).
The hydraulic radius is the cross-sectional area divided by the wetted perimeter. For square channels like
the one in this example,
Hydraulic radius = depth x width /(2.0 x depth + width)
To solve this problem, design a program that allows the user to guess a depth and then calculates the
corresponding flow. If the flow is too little, the user should guess a depth a little higher; if the flow is too
high, the user should guess a depth a little lower. The guessing is repeated until the computed flow is
within 0.1% of the flow desired.
To help the user make an initial guess, the program should display the flow for half the channel depth.
Note the example run:
At a depth of 5.0000 feet, the flow is 641.3255 cubic
feet per second.
Enter your initial guess for the channel depth
when the flow is 1000.0000 cubic feet per second
Enter guess> 6.0
Depth: 6.0000 Flow: 825.5906 cfs Target: 1000.0000 cfs
Difference: 174.4094 Error: 17.4409 percent
Enter guess> 7.0
Depth: 7.0000 Flow: 1017.7784 cfs Target: 1000.0000 cfs
Difference: -17.7784 Error: -1.7778 percent
Enter guess> 6.8
Transcribed Image Text:A concrete channel to bring water to Crystal Lake is being designed. It will have vertical walls and be 15 feet wide. It will be 10 feet deep, have a slope of .0015 feet/foot, and a roughness coefficient of .014. How deep will the water be when 1000 cubic feet per second is flowing through the channel? To solve this problem, we can use Manning's equation 1.486 "AR²/³g\/2 N where Q is the flow of water (cubic feet per second), N is the roughness coefficient (unitless), A is the area (square feet), S is the slope (feet/foot), and R is the hydraulic radius (feet). The hydraulic radius is the cross-sectional area divided by the wetted perimeter. For square channels like the one in this example, Hydraulic radius = depth x width /(2.0 x depth + width) To solve this problem, design a program that allows the user to guess a depth and then calculates the corresponding flow. If the flow is too little, the user should guess a depth a little higher; if the flow is too high, the user should guess a depth a little lower. The guessing is repeated until the computed flow is within 0.1% of the flow desired. To help the user make an initial guess, the program should display the flow for half the channel depth. Note the example run: At a depth of 5.0000 feet, the flow is 641.3255 cubic feet per second. Enter your initial guess for the channel depth when the flow is 1000.0000 cubic feet per second Enter guess> 6.0 Depth: 6.0000 Flow: 825.5906 cfs Target: 1000.0000 cfs Difference: 174.4094 Error: 17.4409 percent Enter guess> 7.0 Depth: 7.0000 Flow: 1017.7784 cfs Target: 1000.0000 cfs Difference: -17.7784 Error: -1.7778 percent Enter guess> 6.8
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY