CSCE 101: Introduction to Computer Concepts
?Lab 6: While Loop Guessing GameAcademic HonestyThe work you turn in is to be your work, not copied from someone else, from the web, or generated by a program.Never allow anyone access to your files.Never give anyone your password.Never share your USB memory or email your files to anyone else.Never give anyone a printed copy of your file or an electronic copy.Never allow anyone to copy your work.PurposeThis lab will let us practice writing while loops with if statementsFunctionalityYou will generate a random number between 1 and 100You will repeatedly ask the user to guess a number between 1 and 100 until they guess the random number.When their guess is too high – let them knowWhen their guess is too low – let them knowIf they use more than 5 guesses, tell them they lose, you only get 5 guesses. And stop the game.When they win, let them know how many guesses it took themSample ProgramIf the user doesn’t guess in 5 guesses, give them an error message.Submitting your filesCopy your .py file and move it to your X:\101Labs directory for grading.Make sure your file is named Lab6XY.py where XY are your initialsPrint your code, and submit it to your lab instructor at the beginning of your next lab class.Grade BreakdownPointsExpectation10%Comments, listing program, your name, and explaining the code30%Correctly Setting up While Loop 30%Correctly Setting up If Statements10%Counting the number of guesses10%Generating the random number10%Input and Output for user ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- final virginia tech
- the gridport toolkit for building grid portals
- csce 101 introduction to computer concepts
- faculty naval postgraduate school
- overview swarm workshop
- research ideas northwestern university
- the trac user and administration guide¶
- osisoft honeywell phd interface to the pi system
- laboratory manual for computer programming with python
Related searches
- introduction to computer systems pdf
- introduction to computer studies pdf
- introduction to computer science
- introduction to computer packages pdf
- introduction to computer pdf notes
- introduction to computer science free
- introduction to computer network pdf
- basic introduction to computer programming
- introduction to computer skills pdf
- introduction to computer pdf
- introduction to computer science class
- introduction to computer science course