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 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
You know the right answer?
Create a perl script for a number guessing game. here are the requirements:

a. your pro...
Questions
question
Mathematics, 27.03.2020 06:16
Questions on the website: 13722367