Question
Determine the control structure(s) that should be used and express it in a pseudocode format. The syntax does not have to be exactly correct, but
Determine the control structure(s) that should be used and express it in a pseudocode format. The syntax does not have to be exactly correct, but it does have to be sufficient so that I can tell that you understand the concept.
Example - Test a value named Color. If Value is Red, print STOP, if value is Yellow, print SLOW, if value is Green, print GO! If (Color=Red) then Print STOP Else if (Color = Yellow) then Print SLOW Else Print Go! End if
Question:
Write the control structure to read in exactly 20 number values. If the number is even, add it to the variable ETotal. If the number is odd, add it to the variable OTotal.
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