You are on page 1of 2

Jamaica Crime Initiative Algorithm

Declare: Parish As (string)

Declare: NoOfCrimesCom, fatalites, CrimesSolved , GrandtotalCrimeCom, Count, UnSolvedCrimes,


GrandtotalcrimeCom, Grandtotal fatalites, Grandtotal Crime solved, Grand Total Unsloved Crimes, Fatal
count: (Integer) ;

Declare: Peace Funds (Real)

Grand Total Crime Com 0

Grand Total fatalities 0

GRAND TOTAL CRIMES SOLVED  0

GRAND TOTAL UNSOLVED CRIMES 0

Fatal count0

FOR COUNT  1 TO 14 DO

Print: “Insert parish Name’’

Read: “Parish Name”

Print: “Insert No Of Crimes Com”

Read : crimes Com”

Print : “Insert fatalites”

Read: “fatalites”

Print : ‘’insert No of crimes Solved”

Read : Crimes Solved

Print : “Insert peace funds”

Read: Peace Funds

UnSolved Crimes  No.Of Crimes Com – CrimesSolved

Grandtotal crime Com  Grandtotal crime Com + No.Of Crimes Com


Grandtotal fatalites  Grandtotal fatalites + fatalites

Grandtotal Crime solved  Grandtotal Crime solved+ CrimesSolved

Grand Total Unsloved Crimes  Grand Total Unsloved Crimes = UnSolved Crimes

IF FATALITIES > 300 THEN

FATALCOUNT FATALCOUNT +1

END IF

Print “summary’’

Print “total number Crimes”, Crimecommitted

Print “ GrandTotal Fatalites” , fatalites

Print “ Grandtotal crimes solved’’, Solved

Total “ GrandTotal Unsolved”, Unsolved

End For

Print Grand Total Crime

Print Overall fatalites

Print Overall Solved

Print Overall Unsolved

Stop

You might also like