Question: Based on the pseudocode provide below, describe the process and outcome to a nontechnical audience. ASK user for input FOR number in [20,40,60,85,133] COMPUTE remainder
Based on the pseudocode provide below, describe the process and outcome to a nontechnical audience. ASK user for input FOR number in [20,40,60,85,133] COMPUTE "remainder" = number % input IF remainder ==0 THEN DISPLAY Quotient is a whole number ELSE COMPUTE "new dividend" = number - remainder DISPLAY "new dividend" will results in Quotient that is a whole number Hint: % is used to find the remainder for a division operation. For example, 15%6=3 because 15 cannot be divided exactly into 6 groups. So, 15 divided by 6 equals 2 with a remainder of 3 . For example, 12%6=0 because 12 can be completely divided by 6 , so the remainder is 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
