PR44 - 'Program No. 4.4 ' ' ' ' ' ' ' ' ' ' ' ' ' ' '...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Program No. 4.4 PROGRAM VARIABLES Nam$ NAME OF ATTENDEE Age AGE OF ATTENDEE Cohort1 AGE GROUP < 20 Cohort2 AGE GROUP 20 - 39 Cohort3 AGE GROUP 40 - 59 Cohort4 AGE GROUP 60 - 79 Cohort5 AGE GROUP > 79 TotalAge TOTAL OF AGES OF ATTENDEES TotalAtt TOTAL NUMBER OF ATTENDEES AverAge AVERAGE AGE OF ATTENDEES Head1$, Head2$ PRINT IMAGES Head3$, R$, W$, C$ ************************** PROGRAM MAINLINE *********************** GOSUB InitializePrintImages GOSUB PrintHeadings GOSUB ProcessDetail GOSUB PrintSummary END ************************* INITIALIZE PRINT IMAGES ******************* InitializePrintImages: LET HEAD1$ = " Local Library" LET HEAD2$ = " Book Reading" LET HEAD3$ = " NAME Number of books read Points" LET R$ = " \ \ ###" LET W$ = " NAME NUMBER OF BOOKS READ POINTS EARNED" LET C$ = " AVERAGE AGE OF ATTENDEES ##" RETURN *************************** PRINT HEADINGS ************************ PrintHeadings: PRINT HEAD1$ PRINT HEAD2$ PRINT PRINT PRINT HEAD3$ PRINT RETURN ************************* PROCESS DETAIL *************************** ProcessDetail: CLS
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

PR44 - 'Program No. 4.4 ' ' ' ' ' ' ' ' ' ' ' ' ' ' '...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online