In an article in Women’s Sports and Fitness, Paul Lachance, director of the Nutraceuticals Institute at Rutgers University, reported that guava, kiwi, papaya, cherimoya, mango and lychee provide a higher average percentage of nine nutrients, including vitamin C, folate, potassium, beta carotene and fiber, than apples, peaches and bananas.
Dr. Lachance has had a fascinating career in food science, working as the principal scientist to establish a food system for manned space flights. Yet his interests are also very practical for populations where proper application of food science can make a huge difference. He helped devised a fortification blend for a trial in a village of a developing nation that resulted in a 50 percent decrease in infant deaths.
This lab assignment deals with a hypothetical study of the potassium levels in tropical fruits inspired my Dr. Lachance's work.
Dr. Lachance's study of tropical fruits has shown that many of them have significant levels of potassium. Potassium is an important nutrient, so a study was made to measure the potassium content of various popular tropical fruits available in many developing countries. This data has been summarized for twenty-two fruits in the tropical.txt data set.
Your assignment is to take the LinkedList.java class and extend it in the class OrderedLinkedList to allow the fruits and their potassium level to be stored in order by name. You must also implement and test the ability to remove a fruit from the list.
Here are the files for this project:
| LinkedList.java | the base class | |
| EasyReader.java | to read the data from the data file | |
| tropical.txt | tropical fruit data file with Potassium levels. | |
| Item.java | holds the fruit information. | |
| TestLL.java | student-provided test program | |
| OrderedLinkedList.java | student code |
| Copyright © 2007 by Asylum Computer Services LLC | Return to CS Labs |