subject

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: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
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
Mathematics, 02.09.2021 01:00
question
Chemistry, 02.09.2021 01:00
question
Mathematics, 02.09.2021 01:00
question
Mathematics, 02.09.2021 01:00
question
Chemistry, 02.09.2021 01:00
question
Mathematics, 02.09.2021 01:00
question
Mathematics, 02.09.2021 01:00
Questions on the website: 13722360