Reference no: EM132169236
Using JAVA
Download the data file (fruit.txt) and fruitImages.zip. The fruit.txt file contains name of fruits, and fruitImages.zip contains images of the fruits .
You may use ArrayList to save the data into your memory.
Your program choose one of the fruits using random method, then display the selected fruit name and its image on a GUI after using Collections.shuffle.
User can answer the exact name of the fruit. You are required to use Collections.shuffle for this program. This is a kind of puzzle game. You need to check whether the answer is correct or not.
If it is correct, image of the fruit should be displayed. You may add some other functions, such as response time in second, scores, etc. for your extra points.
Your program might produce the following output:
R G E N A O
Orange
[orange image]
G P A R E
Grape
[grape image]
N A A N A B
Banana
[banana image]
Output is displayed in GUI.
Fruit.txt:
B A N A N A
A P P L E
O R A N G E
G R A P E
A P R I C O T
M A N G O
C O C O N U T
C H E R R Y
R A S P B E R R Y
L E M O N
Accept a one-dimensional array of double and returns
: Using Java: Write a method, averageArray, that accepts a one-dimensional array of double and returns the average of the numbers in the array.
|
Make an argument that it is enticement
: When using honeypots and honeynets, administrators should be careful not to run afoul of any legal issues.
|
Write software that simulates a game of duck duck goose
: The person who is "it" pats each child on the head, saying "Duck" each time, until randomly reaching a child that the "it" person identifies as "Goose."
|
Write the condition guarantees that a doubly linked list
: Write the condition, if true, guarantees that a doubly linked list with head and tail nodes is empty?
|
Display the selected fruit name and its image on a gui
: Your program choose one of the fruits using random method, then display the selected fruit name and its image on a GUI .
|
Develop a form to allow a user to input a selection
: Based upon the user's selection for a year, id number, or name, the data associated with the selection will be presented as separate web page.
|
Display finished results on the screen
: Using an array of words, go through a text file and highlight all occurences of the words in the array and display finished results on the screen.
|
What is the running time of your algorithm
: Design an algorithm that tests whether two given ordered trees are isomorphic. What is the running time of your algorithm?
|
Create an array that represents recommended ratings for user
: Create an array that represents recommended ratings for the user. There should be 20 numbers in this array, one for each movie.
|