computer

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]
Answer$ = "Y"
DO WHILE Answer$ = "Y"

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$
Answer$ = Upper$(Answer$)
LOOP
END

  1. 👍 0
  2. 👎 0
  3. 👁 146
  1. Question - write an algorithm to print the table of any number and also draw a flow chart .

    Which answer this..........

    1. 👍 0
    2. 👎 0
  2. Question - write an algorithm to print the table of any number and also draw a flow chart .

    Which answer this..........

    Answered reply ...........

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. English

    Identify the correct sentence. a) Please pick me up at five p.m. at night after work. b) Please pick me up at 5 p.m. after work. c) Please pick me up at 5 pm at night after work. d) Please pick me up at 5:00 p.m. after work. B

  2. Geometry math

    1: what is the correct classification for the triangle shown below? 1:acute, scalene

  3. science(check answers)

    can someone check my answer thanks ! 2.The ability to do work or cause change is called A.velocity. B.energy.(I PICK B.) C.transfer. D.friction. 3.Which type of energy is demonstrated by a person jogging? A.electrical energy

  4. math

    1.Which of the following numbers are equivalent to 20%? CHOOSE ALL THAT APPLY.!! A. 0.002 B. 1/4 C. 0.20(I PICK THIS) D. 1/5(I PICK THIS) 2.which of the following numbers are equivalent to 35%?CHOOSE ALL THAT APPLY !! A. 7/20 B.

  1. ENGLISH

    Please help me to pick out 6 lines from the poem Invictus of William Ernest Henley that used sensory images and identify the sense used for each line.I also need to pick out one line that used onomatopoeia. I only Have one answer

  2. HISTORY

    William Bradford wrote Of Plymouth Plantation and A "To My Dear and Loving Wife." B The Day of Doom. C The Voyage of the Mayflower. D The Mayflower Compact. I THINK ITS C OR D BUT IM PRETTY CONFUSED. PLEASE HELP , IF I WERE TO

  3. science

    1.what similarities do nuclear energy and chemical energy share?pick all that apply A.both are types of kinetic energy. B.both are types of potential energy C.both involve magnetic energy D.both involve stored energy (I PICK B AND

  4. MATH CHECK ANSWERS

    CHECK THESE MATH ANSWERS PLEASE 1. There are 18 boys and 12 girls in a math class.what is the ratio of girls to total students? A.18:30 B.12:30(I PICK THIS) C.30:12 D.30:18 2.which of the following ratios are equivalent to 6:9?

  1. english

    Please help me to pick out 6 lines from the poem Invictus of William Ernest Henley that used sensory images and identify the sense used for each line.I also need to pick out one line that used onomatopoeia.

  2. programming

    Write a program that plays a simple dice game between the computer and the user. It uses an unusual dice that has 12 sides, with numbers that start from 10. When the program runs, a loop should repeat 5 times. Each iteration of

  3. math(CHECK ANSWERS)

    2.you are walking for 5 minutes. You walk a distance of 300 meters. What is your rate of meters per minute? A.60 mpm B.6 mpm C.30 mpm(I PICK THIS) D.1500 mpm 3.there are 3 bags of popcorn at the movie theater. Which one is the

  4. math(check answers)

    please check my math!! THANKS SO MUCH 1. Identify the decimal And simplified fractional form of 80%. A. 0.8 and 3/5 B. 0.8 and 4/5(I PICK THIS) C. 0.08 and 3/5 D. 0.08 and 4/5 2.A baseball team wins 45% of its games. What fraction

You can view more similar questions or ask a new question.