1 the partial pseudocode below designs a guessing game


1. The partial pseudocode below designs a guessing game where a random number between 1 and 10 is generated and then a player tries to guess the number. The decision structure part of the program is missing. It should display a message indicating whether the player's guess was correct, too high, or too low. Fill in the missing decision structure. (5 points)

 

start

   declarations

      num randomNumber

      num guess

      num limit

      string PROMPT = "Enter a number between 1 and 10: "

      string CORRECT = "You guessed correctly!"

      string HIGH = "You guessed too high!"

      string LOW = "You guessed too low!"

   randomNumber = random(10)

   output PROMPT

   input guess

 

   // missing decision structure

 

stop

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: 1 the partial pseudocode below designs a guessing game
Reference No:- TGS01120051

Expected delivery within 24 Hours