Computer Science Homework Solutions
Problem
#110280

Array of Spices in Java

If I were to describe an every day situation, like being a chef at a restaurant, how would I implement an array (for inventory) of my spices (I would have a total of 20 spice bottles)? And, how would items in the array might be searched for or sorted?

I don't need a full program, I just need pseudocode - a small example of just the possible array.


Solution Summary

I have in fact coded the whole program for you.

I thought it would be easier for you test and understand the program when you execute the attached class file in a java VM. Feel free to add 10 more spices (I have run out of names:)

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • spice.java
    • spice.class
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse