|
Main()
#define RATE = 33.3 1. Show page table
rcount = Load( holding, "holdings" )
tcount = Load( activity, "transactions" )
Allocate( net, rcount)
Update( holding, activity, net )
tax = Tax( net, RATE )
Print( holding )
Print( net ) Exit |
Load( &Array, Fname ) Open Fname
// Read 1st record of file to determine number of entries
// Allocate memory to hold records to be read in. At this
While ( Not = EOF ) 2. & 4. Show page table Return (count) |
|
Tax( &net, float rate ) float tax;
For each entry in net 9. Show page table tax = tax * rate Return( tax ) |
Update( &holding, &activity, &net )
For each entry in holding
// Update holdings
For each entry in activity
// Calculate change in holdings
For each entry in holding 7. Show page table
|
|
Print( &Array )
For all entries in Array 11 & 13. Show page table Return |