This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 5. The cities and their profit listed in descending order of the profits. 6. Make a horizontal graph showing the performance of each supermarket To carryout this exercise: (a) Design a class called Supermarkets that accepts two arrays - one containing the names of the cities, and the other containing the profits. Write separate methods for each of the six (6) activities stated in the list of requirements. (b) Design a test class called TestSupermarket that creates a Supermarket object using the arrays as arguments to its constructor. Call the respective methods to carry out the requirements. Note create the arrays in the test class by declaration and assignment....
View Full Document
- Fall '08