PSEUDOCODE
Q3.2 Maximum 3 Points
What is the maximum number of operations that can be executed in the code?
Enter your answer here
Save Answer
Q4 Count Operations - Lucky Twos 6 Points
Lucky Twos determines and displays the number of digits that are 2s in a whole number. For
example, the number of 2s in 3487 is 0, while the number of 2s in 272521 is 3. Note: whole
numbers are non-negative integers starting at zero 0, 1, 2, 3, 4.
Assume that the fractional part is discarded in the division:
10 / 4 = 2
8 / 5 = 1
20 / 3 = 6
Q4.1 6 Points
Let n be the number of digits of the whole number. What is the number of operations that are
executed in the code in terms of n?
Enter your answer here
Save Answer
! "
#
$
%&
0/9 Questions Answered