subject

Write a "Guess the Number" game program where the computer selects a random number between 1 and 100. The user (e. G. Miha) then has a limited number experiments (say 7) in which he wants to guess the selected number. In each user attempt, the program should display "Your number is too small" if it is the number entered by the user is less than the selected number. Let the program display "Your number is too large" if the number entered by the user is greater than the selected number numbers. If the user guesses the selected number, then the program should display: Great, Miha! To guess my number correctly, you needed 5 experiments.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
You know the right answer?
Write a "Guess the Number" game program where the computer selects a random number between 1 and 100...
Questions
question
Mathematics, 10.12.2020 08:00
question
Mathematics, 10.12.2020 08:00
question
Mathematics, 10.12.2020 08:00
question
History, 10.12.2020 08:00
question
Mathematics, 10.12.2020 08:00