Lecture 2_11 INTRODUCTION TO Ada II 586.2 ( Review ) Structuring large programs... to make it look like JOVIAL Set up a package specification ( no body ) that contains all Ada TYPE and SUBTYPE specifications that are global to the total program. This package will be WITHed by all compilation units that use global types . Set up a package specification ( no body ) that contains all global objects. This includes arrays,records,pointers, etc. all data that requires memory global to the total program. This package is WITHed by all compilation units that use or set global data. These two packages may be combined if the size is reasonable. Assuming the total program can be divided into major sections where there is considerable interaction within each section and some interaction with other sections , Set up similar packages to the global packages for each section. At this point the major type and data structures are defined. Individual procedures can be written and compiled . The normal good programming practice is to have one logical function performed by a procedure or function. Groups of related procedures should be combined in a single package as long as it does not get too big. Tasks should physically reside in a package. An independent task may be alone in a package. Related tasks should be combined in a single package as long as it does not get too large. Tasks can be kept small by calling procedures to do the work for the tasks. Note: Next week is final quiz, open book, open note, time limited There is also a course questionnaire to be filled out next week