subject
Computers and Technology, 14.12.2019 06:31 vava19

Create a perl script for a number guessing game. here are the requirements:

a. your program generates a random number between 100 and 200 and keeps asking the user to guess the number until the user guesses it correctly.
b. if the user guesses a number that is lower or higher than the number to be guessed then indicate that information to the user as a ‘low guess’ or a ‘high guess’ so that the user can get to the correct guess quicker.
c. the program keeps track on number of guesses taken by the user to get to the correct guess. this is user’s score.
d. use a parameter for number of allowed guesses (set it some value, say 7) and your program congratulates users if user guesses the number correctly in number of guesses less than the number of allowed guesses. the program doesn’t allow user to continue beyond the number of allowed guesses and tells user that the number wasn’t guessed correctly in allowed attempts. you can print the number of allowed guesses at the beginning of the game.
e. write out user name and number of guesses taken to a game report file. each attempt at the game will add a new line to the report file.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
What characteristic of long period comets suggest they come directly from the oort cloud?
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
You know the right answer?
Create a perl script for a number guessing game. here are the requirements:

a. your pro...
Questions
question
Physics, 11.10.2020 18:01
question
Mathematics, 11.10.2020 18:01
question
Mathematics, 11.10.2020 18:01
Questions on the website: 13722359