Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Priority method

282 views

Published on

the method explain the coordination .

Published in: Education
  • Login to see the comments

  • Be the first to like this

Priority method

  1. 1. How to Algorithm go the end without error  Input data for student  Create 14 array list  Sort based on degree of department  Sequential search for the student after sort and select all student who wrote priority at the first  Delete students who selected from all lists  And repeat the operation while the list not empty
  2. 2. St Pr A B C D E F G H I J K L M N O P Q R S 1 en 10 ar 7 ar 10 fr 5 fr 1 ar 4 en 6 en 8 ar 7 en 6 fr 4 en 1 ar 2 ar 5 fr 8 en 1 fr 3 ar 7 en 8 2 fr 9 fr 6 en 9 ar 3 ar 2 fr 5 ar 7 fr 8 fr 7 ar 5 en 3 ar 2 fr 3 en 6 en 9 fr 2 en 4 en 7 ar 9 3 ar 8 en 5 fr 8 en 2 en 3 en 6 fr 8 ar 8 en 7 fr 4 ar 2 fr 3 en 4 fr 7 ar 10 ar 2 ar 6 fr 8 fr 9 Priority and grades of subjects of students
  3. 3.  We have three sections 1- Arabic section take 8 students 2- English section take 6 students 3- France section take 5 students we make three array lists each array have the all students arranged by degree of subject which the department based on it
  4. 4. AR EN FR Student Grade Priority Student Grade Priority Student Grade Priority C 10 1 A 10 1 A 9 2 O 10 3 C 9 2 S 9 3 S 9 2 O 9 2 C 8 3 A 8 3 S 9 1 G 8 3 H 8 3 H 8 1 H 8 2 B 7 1 I 7 3 O 8 1 G 7 2 R 7 2 R 8 3 I 7 1 F 6 3 I 7 2 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 B 6 2 J 5 2 N 6 2 D 5 1 N 5 1 B 5 3 F 5 2 F 4 1 M 4 3 J 4 3 D 3 2 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 D 2 3 Q 3 1
  5. 5. dent Grade Priority Student Grade Priority Student Grade Priority C 10 1 A 10 1 A 9 2 O 10 3 C 9 2 S 9 3 S 9 2 O 9 2 C 8 3 A 8 3 S 9 1 G 8 3 H 8 3 H 8 1 H 8 2 B 7 1 I 7 3 O 8 1 G 7 2 R 7 2 R 8 3 I 7 1 F 6 3 I 7 2 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 B 6 2 J 5 2 N 6 2 D 5 1 N 5 1 B 5 3 F 5 2 F 4 1 M 4 3 J 4 3 D 3 2 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 D 2 3 Q 3 1
  6. 6. The array of real department of Arabic AR EN FR Stu Grade Prio C 10 1 B 7 1 I 7 1
  7. 7. udent Grade Priority Student Grade Priority Student Grade Priority A 10 1 A 9 2 O 10 3 S 9 3 S 9 2 O 9 2 A 8 3 S 9 1 G 8 3 H 8 3 H 8 1 H 8 2 O 8 1 G 7 2 R 7 2 R 8 3 F 6 3 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 J 5 2 N 6 2 D 5 1 N 5 1 F 5 2 F 4 1 M 4 3 J 4 3 D 3 2 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 D 2 3 Q 3 1
  8. 8. udent Grade Priority Student Grade Priority Student Grade Priority A 10 1 A 9 2 O 10 3 S 9 3 S 9 2 O 9 2 A 8 3 S 9 1 G 8 3 H 8 3 H 8 1 H 8 2 O 8 1 G 7 2 R 7 2 R 8 3 F 6 3 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 J 5 2 N 6 2 D 5 1 N 5 1 F 5 2 F 4 1 M 4 3 J 4 3 D 3 2 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 D 2 3 Q 3 1
  9. 9. The array of real department of English AR EN FR Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 B 7 1 S 9 1 I 7 1 H 8 1
  10. 10. udent Grade Priority Student Grade Priority Student Grade Priority O 10 3 O 9 2 G 8 3 O 8 1 G 7 2 R 7 2 R 8 3 F 6 3 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 J 5 2 N 6 2 D 5 1 N 5 1 - - - F 5 2 F 4 1 M 4 3 J 4 3 D 3 2 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 D 2 3 Q 3 1
  11. 11. udent Grade Priority Student Grade Priority Student Grade Priority O 10 3 O 9 2 G 8 3 O 8 1 G 7 2 R 7 2 R 8 3 F 6 3 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 J 5 2 N 6 2 D 5 1 N 5 1 - - - F 5 2 F 4 1 M 4 3 J 4 3 D 3 2 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 D 2 3 Q 3 1
  12. 12. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 The array of real department of French
  13. 13. udent Grade Priority Student Grade Priority Student Grade Priority G 8 3 G 7 2 R 7 2 R 8 3 F 6 3 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 J 5 2 N 6 2 N 5 1 - - - F 5 2 F 4 1 M 4 3 J 4 3 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 Q 3 1
  14. 14. udent Grade Priority Student Grade Priority Student Grade Priority G 8 3 G 7 2 R 7 2 R 8 3 F 6 3 R 7 1 G 6 1 N 7 3 Q 6 3 J 6 1 J 5 2 N 6 2 N 5 1 - - - F 5 2 F 4 1 M 4 3 J 4 3 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 Q 3 1
  15. 15. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 R 7 1 N 5 1
  16. 16. udent Grade Priority Student Grade Priority Student Grade Priority G 8 3 G 7 2 F 6 3 G 6 1 Q 6 3 J 6 1 J 5 2 - - - F 5 2 F 4 1 M 4 3 J 4 3 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 Q 3 1
  17. 17. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 R 7 1 N 5 1
  18. 18. udent Grade Priority Student Grade Priority Student Grade Priority G 8 3 G 7 2 F 6 3 G 6 1 Q 6 3 J 6 1 J 5 2 - - - F 5 2 F 4 1 M 4 3 J 4 3 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 Q 3 1
  19. 19. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 R 7 1 G 6 1 N 5 1 J 6 1
  20. 20. udent Grade Priority Student Grade Priority Student Grade Priority F 6 3 Q 6 3 - - - F 5 2 F 4 1 M 4 3 Q 4 2 K 4 1 E 2 2 E 3 3 L 3 3 K 2 3 K 3 2 M 3 2 L 2 2 Q 3 1
  21. 21. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 N 5 1 J 6 1
  22. 22. udent Grade Priority Student Grade Priority Student Grade Priority F 6 3 Q 6 3 - - - F 5 2 F 4 1 M 4 3 Q 4 2 E 2 2 E 3 3 L 3 3 M 3 2 L 2 2 Q 3 1
  23. 23. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 N 5 1 J 6 1 F 4 1
  24. 24. udent Grade Priority Student Grade Priority Student Grade Priority Q 6 3 - - - M 4 3 Q 4 2 E 2 2 E 3 3 L 3 3 M 3 2 L 2 2 Q 3 1
  25. 25. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 N 5 1 J 6 1 F 4 1 E 2 2
  26. 26. udent Grade Priority Student Grade Priority Student Grade Priority Q 6 3 - - - M 4 3 Q 4 2 L 3 3 M 3 2 L 2 2 Q 3 1
  27. 27. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 M 3 2 N 5 1 J 6 1 F 4 1 E 2 2
  28. 28. udent Grade Priority Student Grade Priority Student Grade Priority Q 6 3 - - - Q 4 2 L 3 3 L 2 2 Q 3 1
  29. 29. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 M 3 2 N 5 1 J 6 1 F 4 1 Q 4 2 E 2 2
  30. 30. udent Grade Priority Student Grade Priority Student Grade Priority L 3 3 L 2 2
  31. 31. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 M 3 2 N 5 1 J 6 1 F 4 1 Q 4 2 E 2 2 L 2 2
  32. 32. udent Grade Priority Student Grade Priority Student Grade Priority
  33. 33. AR EN FR Stu Grade Prio Stu Grade Prio Stu Grade Prio C 10 1 A 10 1 O 8 1 B 7 1 S 9 1 D 5 1 I 7 1 H 8 1 K 4 1 R 7 1 G 6 1 M 3 2 N 5 1 J 6 1 P 2 2 F 4 1 Q 4 2 E 2 2 L 2 2
  34. 34. udent Grade Priority Student Grade Priority Student Grade Priority

×