HOMEWORK PROBLEM 1 INTRODUCTION TO Ada'95 586.1 PURPOSE: To gain experience with IF-THEN-ELSE Ada structures Introduction to Text_IO Get, Put, Put_Line Single procedure main program structure Handling Text_IO exceptions Learning to compile and run Ada programs END RESULT: A complete Ada program that is a single procedure that compiles and executes with no errors PROBLEM: Use the skeleton structure from the attached change.adb or change2.adb and add your code to compute change for an Amount between 1 and 99 cents. Print number of quarters, dimes, nickels, and pennies with reasonable structure. Zero counts for coins are not to be printed out. Use an exception handler to catch bad input. Get starter files from ECLUS::DISK2:[ADA.ADA95]CHANGE*.* or FTP from sigpro.md.essd.northgrum.com/pub/ada95 or get from floppy disk available in class. TURN IN: Printout of compilation ( with no errors!) Printout of execution for test data (in order) 99 94 25 10 5 1 -5 100 ABC 1 or use change.dat . OBSERVE: The input to Ada programs uses the operating system terminal handler. Thus nothing might happen until a is typed ( this allows for input line editing ). METHOD: In learning a new programming language it is most efficient to do it interactively. Before trying the first homework it is recommended that you type in the sample program that follows. Try the emacs editor or other editor of your choice. Compile interactively if your system provides the capability. Use the debugger only if desperate, usually not needed with Ada. Then set up .BAT or make for the "production" runs. This will get the mechanics of the procedures established for the rest of the course. EXTRA CREDIT: Do not change 1..99 to 0..99 or Integer or natural for any variable. In other words never try to store a zero. You may eliminate the Variables Quarters, Dimes, Nickels and Pennies if you do not need them. You can add a Constraint_Error exception handler if you wish. READING: BARNES 5.2, 7.1, 14.1 ISO 8652:1995 2.2, 5.3, 11.2 COMMANDS: DOS, Windows 95, NT or Unix gcc -c change.adb gnatbl change.ali change.exe < change.dat gnatchop change.ada writes file change.adb