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

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!