![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 06.12.2020 14:00 reycaden
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](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
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](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:10
![question](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:10
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:20
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:20
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/fizika.png)
Physics, 15.07.2021 02:20
![question](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:20
![question](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 15.07.2021 02:20
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 15.07.2021 02:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.07.2021 02:20