# computer

posted by .

A-Asking the user to pick a number between 1 and 20 and having the computer pick a number between 1 and 20 and telling the user if they won or lost
B- For finding the logic error in the program
C- For finding and fixing the logic error in the program
D- For finding and fixing the logic error in the program and including one full paragraph in your *.rtf file explaining the fix.

Below is the code

REM Guess a number between 1 and 5

[Start]

REM the statement below is the way the computer guesses a number
CompNum = INT(5 * RND(1))
CLS
INPUT "Guess a number between 1 and 5 "; NUM
IF (NUM < 1 OR NUM > 5) THEN
PRINT "That number is not between 1 and 5 "
GOTO [Start]
END IF

IF NUM = CompNum THEN
PRINT "Correct!!!"
PRINT
PRINT

ELSE
PRINT "Better luck next time"
PRINT
PRINT "I picked "; CompNum
PRINT
PRINT

END IF

INPUT "Would you like to play again "; Answer\$
LOOP
END

• computer -

Question - write an algorithm to print the table of any number and also draw a flow chart .

• computer -

Question - write an algorithm to print the table of any number and also draw a flow chart .

## Similar Questions

1. ### computer

distinguish between computer data represented by the state of a computers electrical switches and the meaningful information that is dispalyed to the user
2. ### computer

distinguish between computer data represented by the start of a computer's electrical switches and the meaningful information that is displayed to the user
3. ### computers

o Distinguish between computer data represented by the state of a computerâ€™s electrical switches and the meaningful information that is displayed to the user.
4. ### Java

Write a GUI application that prompts the user for a number between 1 and 5. Be sure to include error checking so that the program continues to prompt the user for a number until the user's entry is between 1 and 5, inclusive. Once …
5. ### College Computer

Distinguish between computer data represented by the state of a computer's electrical switches and the meaningful information that is displayed to the user?
6. ### computers

distinguish between computer data represented by the state of a computer's electrical switches and the meaningful information that is displayed to the user?
7. ### Program Logic Design

create a flowchart that shows the logic for a program that generates a random number; then ask the user to think of a number between 1 and 10. The display then randomly generated number so the user can see whether his or her guess …
8. ### math

A certain computer program lets the user pick a positive number, decreases the number by 60%, and displays the square of the result. If the number displayed is 140% larger than the number that the user picked, what number did the user …
9. ### Computer Science

Write a program that Will prompt a user to enter his/her name and number.use a while loop that will display the user name times the entered number
10. ### Computer Programming

Compute the income tax due on taxable income entered by the user, given the data as shown in the following table. Be sure to include error checking to make sure the user does not enter a negative number. Assume all entries are integer …

More Similar Questions