subject
Computers and Technology, 06.12.2020 14:00 Ab20600

We want to create a simple game in which 10 random numbers having an integer value between 0 and 34 must be generated and stored inside an array. The player (user) has to enter a sequence of integer
values up to 30 at maximum in order to guess any subset of the randomly generated numbers.
The player should not repeat the same number twice, otherwise he will lose the game and his data entry
has to be stopped and the current score -1 has to be given for him.
The score is calculated as 1 point for each guessed, if the guessed random number is generated twice
inside the array an additional point has to be added to the score, if 3 times – 3 points… The score has to
be displayed for the player at the end of the game.
To simplify the writing of the game’s program, decompose your code as advised below:
- Use an array of integers to store the values entered by the user to check for repeated values.
- Write a Boolean method which receives in parameters a partially filled array of integers, the
current size of the array (number of filled values) and an integer value. The method has to
search if the given last parameter value is existing inside the array.
- You can use any additional method

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 14:50
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer.b. don’t write your password down and leave it where others can find it.c. share your password with your friends.d.each time you visit a website,retain the cookies on your computer.e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
You know the right answer?
We want to create a simple game in which 10 random numbers having an integer value between 0 and 34...
Questions
question
Biology, 05.05.2021 08:40
question
English, 05.05.2021 08:40
question
Mathematics, 05.05.2021 08:40
question
Biology, 05.05.2021 08:40
question
Mathematics, 05.05.2021 08:40
Questions on the website: 13722361