KS3 Parson Puzzle 6 VB.net – random number guessing game

Code / algorithm aim

The code should choose a random number between 1 and 100. The guess variable should be set up and set to 0.

The program should loop continuously until the correct number is guessed by the player. The player should be prompted to enter their guess into the console and if the number is too low will be told “Too low” or if the number is too high will be told “Too high”. If the user guesses the correct number they will be told they are correct and the correct number will be visible to them.


All the code that you need has been given below. Simply organise the code blocks into the correct order so that the code follows the algorithm aim above.

You can organise the blocks by clicking on the arrows on the right hand side to place them above or below the other blocks.

Imports System

Module Program

    Sub Main(args As String())
    End Sub

End Module