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