Ask Question
9 January, 19:28

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?

+3
Answers (1)
  1. 9 January, 19:47
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers