|
Main()
float *students, *tests, *assns
Load( students, "students" )
Load( assns, "assigments" )
Load( tests, "tests" )
Print( students )
Calc( students, assns, tests)
Print( students ) Exit |
Load( &Array, Fname ) Open Fname
// Read file header info recsize = read( Fname )
// Allocate memory to hold records to be read in. allocate( Array, count*recsize )
//Real memory frame used while loading 2. & 4. & 6. Show page table Return |
|
Print( &Array )
For all entries in Array 8. & 12. Show page table
Return |
Calc( &students, &assns, &tests ) t_assn = 0, t_test = 0
For each stu_id in students // Access students array students[stu_id].assn = t_assn // Access students array
For each test in tests(stu_id) // Access tests array students[stu_id].test = t_test // Access students array Done
10. Show page table |