Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note:use python only to complete the program. Do any 5 program. Thank you 2. Develop a solution that takes the rice crop yield from a
Note:use python only to complete the program. Do any 5 program. Thank you
2. Develop a solution that takes the rice crop yield from a field for N years, and then prints the average yield over N years. Take N as input from user. Use a Loop. For this program, write PAC, Algorithm and flow chart. Demonstrate the calculation of average in each iteration (Iteration table). 3. A program takes initial balance in an account. Then it takes amounts of deposits made to the account, one by one. The input will stop when the deposit amount entered is negative. Ex: 2000, 3000, 1120, -20 (STOP). After that, the current balance is printed out. Note: the negative value entered at the end should not be used in the sum. For this program, write PAC, Algorithm and flow chart. Show the Iteration table. 4. Mr. Brown has given a test to his class. The class has N students. He would like to have the average score for the class as well as the highest and lowest scores. Develop a solution to calculate and print out these values. How to calculate highest and lowest scores: Initialize highest=0, lowest=0. After each score is taken as input, check whether the score is higher than highest, then replace the value in highest (if score>highest, highest=score); similarly, check whether the score is lower than the lowest, then replace the value in lowest (if scoreStep 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