With the use of Scratch My Blocks the coding is separated into sub-routines. The My Blocks are titled: 1-Initial Setup - Set all the variables to 0 except Month; 2-Name & cost of the product, Credit Card Yearly Interest Rate; 3-Each Month's payment, interest costs, & left to pay; 4-After 12 months Data Collected By labelling the 4 main parts of the actions, the coding is explained in a simple manner. Add a When Green Flag is Clicked and Repeat block and the main coding stack has been reduced to 6 blocks!
Sample Project for Ontario Grade 9 Math Curriculum 2021 C2.2 create code by decomposing situations into computational steps in order to represent mathematical concepts and relationships, and to solve problems