Sei sulla pagina 1di 2

Begin Component count

Initialise totals
Set all totals to zero (CAP,IND,IDT,SEN,RES,SEM)
Loop until all the components are scanned
Get component type
IF component type = CAP,IND IDT,SEN,RES,SEM // Add to the correct component total below
Add total to CAPTOTAL,INDTOTAL,IDTTOTAL,SENTOTAL,RESTOTAL,SEMTOTAL
Process all data // once all data have been achieved
End if
Endloop
Return CAPTOTAL,INDTOTAL,IDTTOTAL,SENTOTAL,RESTOTAL,SEMTOTAL
End Component count // for each component

Begin output of results // for each component type listed
Get the data from component type
Loop until components are all scanned
If component = CAP,IND IDT,SEN,RES,SEM // add to the correct component total
Get total for each component
Show and display each total amount
Multiplied by 100 = Percentage
If component = CAP,IND IDT,SEN,RES,SEM
Display total amount from each component //display correct component type listed
above(divided by 6)
End output of results

Begin output of results// using call module data
Get component type = CAP,IND IDT,SEN,RES,SEM
Loop until all are scanned
Output results in stars
Endloop
End output of results// showing bar graph

Potrebbero piacerti anche