1. The programmer intends for this pseudocode to display three random numbers in the range of 1 through 7. According to the way we’ve been generating random numbers in this book, however, there appears to be an error. Can you find it?

Respuesta :

Limosa

Answer:

Display random(1, 7).

Explanation:

In the following question, some details of the question are missing that is pseudocode.

//  Program shows three random numbers

// the range of 1 to 7.

Declare the Integer count

// Shows three random numbers.

For count = 1 To 3

Display random(7, 1)

End For

In the following pseudocode, it generates three random numbers from 1 to 7 because the for loop statement is starts from 1 and end at 3 so the loop will iterate three times and every time it generates one random number from 1 to 7. So, the following are the reason that describe the answer is correct according to the scenario.

ACCESS MORE
EDU ACCESS
Universidad de Mexico