Final Project
Your final project for the class will be a programming assignment. You have two options. You may use the idea below, or you can create your own project. If you create your own project, you must include a nested loop, if statements, input, and output. For either option chosen, input and output should be very clear. I must be able to use your program without confusion of what information is needed to be entered. Do not assume that I will know what to do because I can read your code. I want to hit run and have your program direct me in what to do very clearly. This is good usability.
If you don't want to create your own project, you can complete the following problem:
Create a number guessing game. The computer should pick a random number (you decide...1-20, 1-100), and the user should be prompted to enter a guess. The user gets however many tries you allow. If the user does not guess the number correctly, the game ends; however, the user should be asked if he/she wishes to continue playing. If the user wants to play again, the computer should choose a new random number, and the game should start over. Otherwise, the game will end. You could print out a tally of the user's wins/losses for bonus points.
At the very first line in your file, you need to write the following:
import random
This imports a module that creates random numbers.
The next line of your code should be
random.seed()
This allows the random number generator to create a more random number.
Wherever you want to create a random number for the user to guess...write the following:
num = random.randint(1,20)
The variable num now holds a random number between 1 and 20.
Challenge - 10