Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 5: Draw the flowchart for the following pseudocode 1. Initialize variables for even count, odd count, even sum, odd sum, and input number. 2.
Question 5: Draw the flowchart for the following pseudocode 1. Initialize variables for even count, odd count, even sum, odd sum, and input number. 2. Set the values of even count, odd count, even sum, and odd sum to 0 . 3. For i from 1 to 20 , do the following: a. Read the input number. b. If the input number is even, add it to the even sum and increment the even count. c. If the input number is odd, add it to the odd sum and increment the odd count. 4. Calculate the average of even numbers by dividing the even sum by the even count. Print the count and average of even numbers. 5. Calculate the average of odd numbers by dividing the odd sum by the odd count. Print the count and average of odd numbers
Step 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