CISY 125 - Lab 7
Do Problem # 6 on Page 122 with the following changes
- Do NOT use LPRINT, instead use PRINT
- Use the Arrays Total, Absent and Percent for Students in grades 9 to 12
- It's ok if the program uses todays date as opposed to prompting the user
- It's ok if you have extra percentages (see alternate run)
Your output can either match the sample run in the book or the Alternate below:
Sample Run Like the Book
Enter Grade 9 total students? 110
Enter Grade 9 number absent? 7
Enter Grade 10 total students? 143
Enter Grade 10 number absent? 12
Enter Grade 11 total students? 118
Enter Grade 11 number absent? 5
Enter Grade 12 total students? 167
Enter Grade 12 number absent? 14
Baymont High School
Attendance Report for: 04-17-2002
Total Number Number Percentage
Grade of Students Absent Absent
-------------------------------------------------------
9 110 7 6.4%
10 143 12 8.4%
11 118 5 4.2%
12 167 14 8.4%
Or your output can look like this:
Alternate Sample Run
Enter Grade 9 total students? 110
Enter Grade 9 number absent? 7
Enter Grade 10 total students? 143
Enter Grade 10 number absent? 12
Enter Grade 11 total students? 118
Enter Grade 11 number absent? 5
Enter Grade 12 total students? 167
Enter Grade 12 number absent? 14
Baymont High School
Attendance Report for: 04-17-2002
Total Number Number Percentage % Absent
Grade of Students Absent Absent All
----------------------------------------------------------------
9 110 7 6.4% 1.3%
10 143 12 8.4% 2.2%
11 118 5 4.2% 0.9%
12 167 14 8.4% 2.6%
538 38 7.1%
With either option, the percentages must look like above
It's ok to assume < 10% absent
You are to do the following:
- Write the QBasic Program (100 %)
this is an effortless assignment, if you know where to look...but don't
cheat off of another student
Submitting the program
- Submit the QBasic code electronically (either hand in the In-Class Floppy, or e-mail the QBasic code)
- Submit the QBasic code on paper.
You must work alone on these Computer Projects. Cheating in any form will not be tolerated.