Placeholder

CIS115 Course Project Guess The Number

$15.00

Description

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 (guessmynumber)
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!
SCREENSHOTS
SOLUTION
PAYMENT
ENTIRE COURSE
The solution includes a zip file.
Attachments [Move over files to preview content of those files]
CIS115_Course_Project.zip (164.59 KB)
CIS115-Course-Project-Screenshot-1.png
CIS115-Course-Project-Screenshot-2.png
CIS115_Course_Project.docx
course_project.py
Preview course_project.py
# xxxxx xxx xxxxxx xxxx 4
# xxxx:
# xxxx:
# xxxxxx xxxxxx, xxxx xxxxx xxxx
# xxx xxxx xxx xxxxxx.
# if number is too high or too low, tell user, if they guessed it break out of loop import random
if __name__ == ‘__main__’:
print(“Welcome to my Guess the number program!”) my_number = random.randint(1, 10)
xxxxx xxxx:
xxxxx = xxx(xxxxx(‘xxxxx x xxxxxx xxxxxxx 1 xxx 10: ‘))
xx xxxxx < xx_xxxxxx: xxxxx('xxx xxx') xxxx xxxxx > xx_xxxxxx:
xxxxx(‘xxx xxxx’)
Price: $15
Buy Now
Checkout
Added to cart
FLASH SALE
$89
$111
Save $22
CIS115 Entire Course
Get Entire Course
You May Also Like:
CIS115 Week 1 Lab Registration Form and Pay Calculator
CIS115 Week 2 Lab Even or Odd and Grade Checker
CIS115 Week 3 Lab Change Calculator and Shipping Calculator
CIS115 Week 4 Lab Multiplication Table
CIS115 Week 5 Lab Race Time Sorting
CIS115 Week 6 Lab Shopping List
CIS115 Week 7 Lab Creating A GUI In Python

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.