Question: Memory location Memory Contents 0 0 Sub Main 0 1 Dim x as integer = 7 0 2 Dim chances as integer = 3 0

Memory location Memory Contents
00 Sub Main
01 Dim x as integer =7
02 Dim chances as integer =3
03 Dim guess as integer
04 Do
05 Writeline("Guess the number (1 to 10):")
06 guess = ReadLine
07 chances = chances -1
08 If guess > x Then
09 Writeline("Too high")
10 Else if guess < x Then
11 Writeline("Too low")
12 End If
13 Loop until guess = x or chances =0
14 End Sub
15[empty]
16[empty]
17[empty] Q: If the user enters the value 5 as their first guess, give the values you think will be stored in memory locations 15,16, and 17 when the program counter reaches 07.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!