Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

program that will ask the user to guess a number between 1 and 10

program that will ask the user to guess a number between 1 and 10. The pseudocode is below. Be sure to import

random at the beginning of your code and use a comment block explaining what your program does

#Guess the number week 4

#Name: 

#Date: 

#Random number, loop while true

#ask user for number.

#if number is too high or too low, tell user, if they guessed it break out of loop

Display “Welcome to my Guess the number program!”

random mynumber

while True

  Display “Guess a number between 1 and 10”

  Get guess

  if (guess<mynumber)

     Display “Too low”

  else if (guess>mynumber)

     Display “Too high”

  else if (guess==mynumber)

     Display “You guessed it!”

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"