. As programmers, we must be careful to fully understand what the user's request is and not assume what is being requested.
In the case of Lab 2, we should not read in additional steps or actions:
Step 1. Generate a random number.
Step 2. Ask any user to "think" of a number between 1 and 10.
Step 3. Display the random number generated in Step 1 so the users can see if they guessed correctly.
Note that the user will not enter a number.
Also, note that to generate a random number between 1 and 10 in Visual Logic you will use random (10) + 1. (A one is added because the Visual Logic random number function would generate a number between zero and nine.)
Make sure to follow the best practices given in Chapter 2 for naming variables and using an appropriate user prompt and output identifying string with user-friendly formatting. You should use the Visual Logic “Console” option for the screen output. The first three lessons in the Visual Logic Instructions and Assignments will help here.