SYCS-135 INTRODUCTION TO PROGRAMMING

 

Assignment 9

 

Due Date: Nov 30, 1999

 

 

Problem: The same as Assignment 8 except that the output is to be in the following order:

 

1. All the applications' documentation exactly as written in applic.txt.

 

2. All prior years should be individual years, not totaled.� Only print out the years with frequencies > 0.

 

3. All the frequency counts for each paragraph in a neat tabular format, as illustrated

below:

 

Example Input and Output: If you have the following two paragraphs of documentation:

 

To modify DEDUCTION_1 to account for Year 2000 compatibility, check for dates 1979-1999 taking into account year 1900.� Years before 1979 should be handled using the Y2K routine A, years >= 1979 should be handled using the OLD_1 routines.

 

To modify DEDUCTION_2 to account for Year 2000 compatibility, check for dates 1979-1999 taking into account year 2000.� Years before 1979 should be handled using the Y2K routine A, years >= 1979 should be handled using the OLD_2 routines.

 

 

The output should look like:

 

Documentation follows:

 

To modify DEDUCTION_1 to account for Year 2000 compatibility, check for dates 1979-1999 taking into account year 1900.� Years before 1979 should be handled using the Y2K routine A, years >= 1979 should be handled using the OLD_1 routines.

 

To modify DEDUCTION_2 to account for Year 2000 compatibility, check for dates 1979-1999 taking into account year 2000, Years before 1979 should be handled using the Y2K routine A, years >= 1979 should be handled using the OLD_2 routines.

 

Frequency Counts per paragraph are:

 

��������������������������������������� Paragraph������������� Category������������������������ Frequency

 

���������������������������������������������������� 1������������� Year��������������������������������������������� 4

���������������������������������������������������� 2������������� Year��������������������������������������������� 4

 

���������������������������������������������������� 1������������� Date��������������������������������������������� 1

���������������������������������������������������� 2������������� Date��������������������������������������������� 1

 

���������������������������������������������������� 1������������� 2000�������������������������������������������� 2

���������������������������������������������������� 1������������� 1999�������������������������������������������� 1

���������������������������������������������������� 1������������� 1979�������������������������������������������� 3

���������������������������������������������������� 1������������� 1900�������������������������������������������� 1

���������������������������������������������������� 2������������� 2000�������������������������������������������� 3

���������������������������������������������������� 2������������� 1999�������������������������������������������� 1

���������������������������������������������������� 2������������� 1979�������������������������������������������� 3

 

Details: There should be at least 5 paragraphs of documentation. Makeup the three additional paragraphs

Special Requirements: You must use 2-D arrays in this assignment.

Assignment Submission: On Nov. 30th hand in a hard copy of your algorithm in pseudocode, your test oracle and desk-checking calculations, your C++ program compilation listing, and your output obtained from running your program with the external file "applic.txt". SCS users will also submit their programs electronically on Nov. 29th, see below.

 

Pseudocode: A 1 -page description of your algorithm in pseudocode.

Test Oracle: Write at least 2 additional paragraphs of documentation and use your algorithm to calculate by hand the frequency counts.

 

Program Documentation: At the top of your source code as a comment, include your name, course number and title, assignment number, and date, followed by a description of the problem.� Include comments as necessary throughout your program to illustrate the algorithm, logic of flow, meaning of variables etc.� Follow the style guidelines described in class.

 

ELECTRONIC SUBMISSION - SCS

 

All C++ program assignments are now to be submitted electronically.� Your program will be run using the instructors' data.� For Assignment 9, name your C++ program file assign9.c and use the following command to submit your program:

 

����������� $ Keeling assign9.c

 

The assignment is to be submitted electronically no later than 10:00pm on Nov. 29, 1999.� All assignments are automatically time-stamped and no late assignments will be accepted.� If before the deadline, you send in a version of your assignment, having already sent in an earlier version, the later version will automatically replace the earlier version in the assignment file.

 

ELECTRONIC SUBMISSION � VIA E-MAIL

Your program can be submitted via E-mail. If you select this mode of submission then you must make sure that you make the subject of your message �assign9.c � and use the following E-mail address

 

����������� [email protected]

 

 

 

The body of the message should be your source code listing with the program�s output in comments.