• Design and implement a program that simulates the opening of a flood gate to a

• Design and implement a program that simulates the opening of a flood gate to allow excess water to be removed from a canal.
• Requirements Decomposition
– The canal has a natural flow rate 40 ft3/s at 3.3 feet. Rainfall increases the water level of the canal and a flood gate must be opened to remove the excess water.
– Prompt the user for the water level in feet ( must be> 3.3) and the number of feet to open the flood gate (must be >=1), and compute the and the current level of the canal.
– The program will simulate the discharge of water through the flood gate at a rate of 0.03 feet of water per minute for each foot that the food gate is open. This will continue until the water level in the canal has reached 3.3 feet.
Comments from Customer
Please put the code in the pdf file

Posted in Uncategorized

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount