CIS115 Course Project Guess The Number

Availability: In stock

Regular Price: $15.00

Special Price: $12.00

OR

CIS115 Course Project Guess The Number

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

CIS115 Course Project Guess The Number


You will create a 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!"


When you run your program the result should be something like this:
Welcome to my Guess the number program!


Please guess a number between 1 and 10: 5
Too high
Please guess a number between 1 and 10: 4
Too high
Please guess a number between 1 and 10: 3
Too high
Please guess a number between 1 and 10: 2
You guessed it!


Be sure to submit your assignment

* Required Fields

Regular Price: $15.00

Special Price: $12.00

Details

CIS115 Course Project Guess The Number

You will create a 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!"

When you run your program the result should be something like this:
Welcome to my Guess the number program!

Please guess a number between 1 and 10: 5
Too high
Please guess a number between 1 and 10: 4
Too high
Please guess a number between 1 and 10: 3
Too high
Please guess a number between 1 and 10: 2
You guessed it!

Be sure to submit your assignment

Additional Information

Special Price $12.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.