Initiate Mage
- Joined
- Sep 13, 2013
- Messages
- 1
- Reaction score
- 0
Simulates a progressive cycle of closing and opening every nth locker in a hall of 100 lockers, with n starting at the 2nd locker and continuing through to the 100th locker. Represent the locker status (opened or closed) as a Boolean array with True respresenting opened. When it starts, should be open and their status displayed in a list box when initialize is clicked.
Simulate, the status of every 2nd locker should be switched( if it is open the close it and if it is closed, open it The status of every 3rd locker should be switched. Continue this process for every 4th through the 100th locker. Display the concluding locker statuses in a list box. Does anyone know vb.net if so, could you please explain how to do it.
Simulate, the status of every 2nd locker should be switched( if it is open the close it and if it is closed, open it The status of every 3rd locker should be switched. Continue this process for every 4th through the 100th locker. Display the concluding locker statuses in a list box. Does anyone know vb.net if so, could you please explain how to do it.