Octopi Pseudo Code

  1. Create a page called octopi4.php which will randomly generate 6 numbers from 0-7, and put into 2 arrays with three elements.
  2. Print out the numbers in a table with corresponding pictures.
  3. Asking the user to input the answer for the octal addition and the amount of time which the steps will be processed.
  4. Creating a variable of Carry and another one for Step.
  5. Passing all the information (including the 2 array, user¡¯s inputs and 2 variables) to another php file called octopi5.php
  6. Receiving all the information, and print out the table with the 2 arrays.
  7. Calculating the addition of 2 numbers from the array with specific index $step and output the result.
  8. Refreshing the page and minus 1 from $step every time the page is refreshed all variables are passed on to the refreshed page inside .
  9. When $step is less than 0, print out the whole process of calculation and the final solution.