First, during the setup phase, you will need to prompt the user to enter the list of cities.
Then, during the iteration phase, you will need to prompt the user to enter the "City:" before prompting her/him to enter the "Data:".
From an engineering design perspective, you will need to be able
to manage a Categorizer[]
for each city.
The two obvious ways to solve this problem are to use either
an ArrayList<Categorizer[]>
or a
HashMap<String, Categorizer[]>
. You should
think about which would be most appropriate and then modify your
QuAQI
class accordingly.
Copyright 2013