Question: in java please A canal has a natural flow rate of 40 ft3 /s at 3.3 feet. Rainfall increases the water level of the canal

in java please A canal has a natural flow rate of 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 bean integer and >= 1). Validate the input with loops that alert the user of invalid input and request input again. Compute the time to lower the level to 3.3 feet while displaying the minutes passed, and the current level of the canal. The program will simulate the discharge of water through the flood gate using a loop 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. The program will announce when the canal has reached the natural level of 3.3 feet and end. Note the output alignment in the sample below.in java please A canal has a natural flow rate of 40

Sample program run: Enter the water level (> 3.3) 4.6 Enter the gate opening in one foot increments 3 Minutes: 1 Water Level: 4.51 Minutes: 2 Water Level: 4.42 Minutes: 3 Water Level: 4.33 Minutes: 4 Water Level: 4.24 Minutes: 5 Water Level: 4.15 Minutes: 6 Water Level: 4.06 Minutes: 7 Water Level: 3.97 Minutes: 8 Water Level: 3.88 Minutes: 9 Water Level: 3.79 Minutes: 10 Water Level: 3.70 Minutes: 11 Water Level: 3.61 Minutes: 12 Water Level: 3.52 Minutes: 13 Water Level: 3.43 Minutes: 14 Water Level: 3.34 Minutes: 15 Water Level: 3.25 The water level is now at 3.3 feet

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!