Comp 151 Project 3
A "conditionals" project.
Due: Wednesday Oct 4th at
11:59pm
Description
In this program you are going to simulate a the
old select a person by 'I'm thinking of a number'
In your program you will
- Ask the user for the names of three
contestants and store those names in 3 variables
- generate a random number from 1 to 100
- print "I'm thinking of a number - you guess
what it is"
- Ask each of the three contestants by name
what their guess is.
- convert their guesses to integer
- find out which guess is closest to the random
number you generated earlier.
- Announce the number that your program
randomly chose, and announce the winner by name and the winner's chosen
number.
Don't forget to comment your program. Starting
this program, you have enough code to tell me what you are trying to do.
So in addition to putting your name in a comment at the top of the file
comment the major steps of your program.
Submission:
Submit the lab via blackboard as usual. Don't
forget to make sure your file has you name in the file name.