I would be cool if I could develop a 3 by 3 grid that all row, column and diagonals adds up to 15, using numbers ranging from 1 to 9.
When click the "check sum button" this application should
Sum up all rows, columns and diagonals and put the result in the corresponding box
... Use if/else to check if all the results are 15, and congratulates the user if the answer is correct.
The name of text boxes should be named appropriately.
bonus (1pt) make the program check/give error message so that user will enter each number 1~9 only once.
When click the "check sum button" this application should
Sum up all rows, columns and diagonals and put the result in the corresponding box
... Use if/else to check if all the results are 15, and congratulates the user if the answer is correct.
The name of text boxes should be named appropriately.
bonus (1pt) make the program check/give error message so that user will enter each number 1~9 only once.
Comment