Question
BANANA One serving of banana contains 110 calories, 30 grams of carbohydrate and 1 gram of protein. APPLE Apples are free of fat, sodium and
BANANA One serving of banana contains 110 calories, 30 grams of carbohydrate and 1 gram of protein. APPLE Apples are free of fat, sodium and cholesterol. ORANGE Oranges are an excellent source of Vitamin C. GRAPE Grapes are a good source of vitamin K. APRICOT Apricots are an excellent source of vitamin A. HONEYBERRY HONEYBERRYs are good for your honey. PAPAYA One medium papaya has approximately: 120 calories. 30 grams of carbohydrate BLUEBERRY One cup of blueberries (148 grams) contains 84 calories. CHERRY Cherries are a good source of vitamin C, with 16% of the daily recommended value in onecup. RASPBERRY Eating one cup of raw raspberries will provide 54 percent of your vitamin C needs. GRAPEFRUIT Grapefruit is an excellent source of vitamin A (in the form of carotenoids) and vitamin C.
For this assignment I need to use hashmaps and read the words from the text file. My current program I am having trouble getting the hashmaps to work with the text file. and getting the correct output with the response time. Any help would be appreciated
Download the data file (fruit.txt) from our web site, or create your own data file. The fruit.txt file contains fruit names and nutritional information. You must use any data structure in the Collections to save the data into your memory. Your program will choose one of the fruits using your newRandom class (NOT Java built-in random class) and display the selected fruit name, spelled randomly, after using ollections.shuffle, The user will answer the name of the fruit spelled correctly. You are required to use Collections.shuffle for this program. If the response is correct, the program should show its nutritional info. This is a kind of puzzle game and will use the concepts of advanced data structures. You will also need to display response time in secondsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started