Question: 6. Write an iPython program (that you can show to your instructor), that will provide a solution to the following scenario. Notice that initially the

 6. Write an iPython program (that you can show to yourinstructor), that will provide a solution to the following scenario. Notice that

6. Write an iPython program (that you can show to your instructor), that will provide a solution to the following scenario. Notice that initially the problem is expressed very haphazardly. Sediment deposited on the north side of a river's mouth increases the beach at a rate of 5%(0.05) in a year. On the south side, the increase is only 2%(0.02) on a yearly basis. At the start of the study period, there is 200cm of sediment on the north side of the river's mouth and 100cm on the south side. The solution needs to calculate and express the amount of the deposition for each side of the river's mouth, and the total amount deposited. The solution's algorithm is expressed below in pseudocode. Normally, you would have developed this algorithm yourself. However, because the purpose of this exercise is for you to get more familiar with Python programming and syntax (also given that we discussed algorithm in class), the algorithm is provided for you in the form of a pseudocode. Algorithm: Set the amount of north sediment to 200 Assign the value of 100 to a variable for the south sediments Make the northern rate as 0.05 south rate =0.02 Calculate amount of the northern deposit with north sediment * northern rate southern deposit = south sediment south rate total deposit = north deposit + south deposit write/display/express/print the north deposit, south deposit, and total deposit Submission: Please show your codes to your instructor once done

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!