Question: Problem One Demonstrate Recursion Create an ArrayList similar to the below image: ArrayList rec ( = ) new ArrayList ( ) ; Use

Problem One
Demonstrate Recursion
Create an ArrayList similar to the below image:
ArrayList rec \(=\) new ArrayList();
Use Java to demonstrate Recursion using an ArrayList.
The system should ask the user to enter a number "\( n \)," and the system multiplies itself by "\(\mathrm{n}-1\)" until \(\mathrm{n}=1\).
For example, if the user inputs "5," then the result is: Problem Two
Create an ArrayList, and then use it to track the \(\boldsymbol{n}\boldsymbol{t h}\) number in the Fibonacci sequence.
For example, if \(\mathbf{n}=\mathbf{6}\),
then the output would be:
\([0,1,1,2,3,5]\)
Problem Three
"Even or Odd Word"
Ask the user to ENTER IN A QUOTE or WORD or SERIES of WORDS. The system shall calculate whether or not the amount of characters is EVEN or ODD.
For example, the word EXCEL would yield "ODD" because there are 5 characters. Problem Four
"Even or Odd List"
Ask the user to ENTER IN A SERIES OF NUMBERS INTO A LIST.
The system shall then calculate whether or not the amount of items is EVEN or ODD.
For example, the list [45,54,1] would yield "ODD" because it has three items in it. Problem Five
"KENO"
Create a program that generates an ArrayList, similar to that of a Keno board.
Here is how the program shall operate similar to a real game of Keno:
The user predicts a set amount of numbers they think will be 'drawn' (say,8, for example).
The Keno board is created. It should be 4 rows with 5 items per row, unless you would like to make it different. It should be randomly generated from numbers 1 to 100.
It should resemble the below image:
4574497131
2830348544
\(34\quad 56\quad 69\quad 8\quad 13\)
\(86\quad 28774170\)
If at least 5 of the 8 numbers match the Keno board, the player wins.
Feel free to have a variation in the amount of numbers on the board, or how many numbers the player chooses...just ensure the CORE gameplay is consistent with the above rules.
Problem One Demonstrate Recursion Create an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!