Ask Question
14 November, 22:40

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?

+1
Answers (1)
  1. 15 November, 00:55
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers