<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:683359.72911.qm@web37401.mail.mud.yahoo.com"
 type="cite">
  <style type="text/css"><!-- DIV {margin:0px;} --></style>
  <div
 style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);">Dr.Pounds<br>
  <br>
When we get the file containing the zip codes, do we add them into an
array list? Does each separate portion (city name, zip code,
coordinates) each be put into a separate array? Or do we do like how we
did in lab 14 and create new objects that are based on something we
build from the ground up? When we have to create this algorithm, is it
basically a formula?<br>
  <br>
Thank-you, <br>
  <div>&nbsp;</div>
  </div>
</blockquote>
For the zip code and coordinate data -- its your call how you do that.
Some people like using parallel arrays, some people prefer array
lists.&nbsp; I mean think about it, here are some possible ways to store the
data:<br>
1. parallel arrays for zip code, city, state, latitude, longitude, time
zone, and dst observance<br>
2. parallel ArrayLists for each of these<br>
3. a single array made up of zipcoord objects, with each of these
variables stored as an instance&nbsp; variable <br>
4. a sindle ArrayList made up of zipcoord objects<br>
<br>
<br>
An algorithm is a process by which you solve a particular problem.&nbsp; In
a sense it is a formula, but it is more general than that. You have all
had to come up with "small" algorithms to solve&nbsp; specific small&nbsp;
problems in your former programs --&nbsp; like how to count syllables in the
Flesch reading index.&nbsp; Thinking about how to plan your flights is just
a bigger version of that.&nbsp;&nbsp; To get you started, sketch a map of the
southern states and the city locations, beside each city write down how
many people have to be picked up.&nbsp; Somewhere else on your sheet of
paper, keep a tally of who is on your plane and where they need to go.&nbsp;
Think through some scenarios of picking people up and dropping them
off.&nbsp; Here is the important thing --- think about what decision
processes you are following in your head to pick people up and drop
them off.&nbsp; Write that decision process down in words as specifically as
you can -- including as many "decisions" as you can.&nbsp; That description
is called an algorithm.&nbsp;&nbsp;&nbsp; Then convert that algorithm to code and test
it.&nbsp; Here is a hint -- the more specific your algorithm is, the easier
it will be to convert it to code.<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds@theochem.mercer.edu">pounds@theochem.mercer.edu</a>)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
</pre>
</body>
</html>