Hi,
I have been going through your site, it is really good. I was wondering if you could help me. I would be really grateful if you could spend a few moments going through this and just showing me how to write the program for it to run in Fortran 90.
This is the scenario: One night a number of prison wardens got drunk and decided to play a game. The first one runs up a row of cells and unlocks each cell. Then, the second warden relocks every second cell. The third warden runs up and switches the lock of every 3rd cell; if it was locked its now open and vice versa. The fourth warden does them same thing, but only on every fourth cell. The 5th warden will only switch the lock on every 5th cell and so on. The wardens carry on until all of them has had a go. Basically at the end of the program it should print how many cells are open after the last warden has run and a list of all the open and closed cells should be saved to a file. The program should allow the user to input any number of wardens and cells.
Please, please, please anyone who understands this help me, i'm really very stuck
I have been going through your site, it is really good. I was wondering if you could help me. I would be really grateful if you could spend a few moments going through this and just showing me how to write the program for it to run in Fortran 90.
This is the scenario: One night a number of prison wardens got drunk and decided to play a game. The first one runs up a row of cells and unlocks each cell. Then, the second warden relocks every second cell. The third warden runs up and switches the lock of every 3rd cell; if it was locked its now open and vice versa. The fourth warden does them same thing, but only on every fourth cell. The 5th warden will only switch the lock on every 5th cell and so on. The wardens carry on until all of them has had a go. Basically at the end of the program it should print how many cells are open after the last warden has run and a list of all the open and closed cells should be saved to a file. The program should allow the user to input any number of wardens and cells.
Please, please, please anyone who understands this help me, i'm really very stuck