Assignment #9
- September 23rd – due September 28th
Required
- Read about the Ada programming language in
chapter 2 of our text.
- Download an Ada compiler and run a sample
program. If you find a good URL,
e-mail it to me and I will post it on our URL page.
- Answer the the grammar
question linked here and solve it.
It is to be turned in.
- Answer the questions on the linked
page for Pascal. Type your
answers onto the page and then print it out to turn in. Note that there are 20 questions you
need to determine the answers to and that you must attach printouts of the code snippets that you used to verify
your answers (with the output produced) for any 3 of them. Come prepared to discuss your
results.
- Write a Pascal program which will determine
whether two words of 5 or fewer characters are anagrams of each
other.
- Note 1: anagrams are words which contain the
exact same letters although not necessarily in the same order.
- Note 2: strings in standard Pascal must be
declared as packed arrays of
characters.
- If you are in the 5pm
section that got interrupted, you will find the program on using
pointers in Pascal outside my door.
Please pick one up and study it. If you are in the 3:30 section you
should have received a copy in class.
- If you are in the 3:30 pm
section and you inadvertently got back a folder with your Pascal
program in it instead of one with the output from your 3rd
FORTRAN program, please slide the folder under my door by noon Monday.
- if you follow this link you will see sample data
files that your program (4. above) should handle
Optional:
After you have downloaded
your Ada compiler, download Adagide or Jgrasp (useful IDEs for Ada)