Do one of the following:
Do exercise 6.2 on page 121 of the textbook. Do the modeling work and also write a program to implement the algorithm. (If you want to use some language other than Java, discuss it with the instructor.)
Do exercise 7.7 and 7.8 on page 158 of the textbook. That is, do both the modelling work and write a program to implement Peterson's algorithm. (If you want to use some language other than Java, discuss it with the instructor.)
Submit your source code and documentation using BlackBoard.