Ask Question
28 April, 04:16

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?

+2
Answers (1)
  1. 28 April, 05:05
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers