Introduction
Add a bit of coding to your math class. Add just one lesson!
Ask students to solve a math problem with code. Instead of the student executing the algorithm (the steps) to do a specific problem, they will learn to abstract and write code to solve ALL problems of that type. This helps reinforce the steps to solve a math problem.
Example: Instead of calculating the area of a rectangle for some given dimensions, create a Rectangle calculator to find the area of ANY rectangle based on user input of dimensions.
Here are some of the many connections of math and coding
Lesson Plan
Scratch Projects Studio : https://scratch.mit.edu/studios/3554710/projects/
Teachers please email me for solutions and other hints/tips for these projects.
Project Information
Project 1 : The Change Calculator Cat
The Change Calculator cat asks the user to set the total cost of items and sales tax percentage. It calculates how much change to return based on the bill given ($10, $20 or $100)
Project 2: The Rectangle Calculator Cat
The Rectangle Calculator cat lets the user set length and width using sliders and then draws the rectangle when they press Space. Finish the project by calculating the area and perimeter values also when the user presses the Space key
Project 3: The Unit Converter Cat
User enters the number of inches. When user clicks on the cm button, the converted amount in cm shows up next to the button.
Add code to make this work. Add code for the feet button to work. Add other buttons for miles, km and other units of length
Improve the user interface so this Unit Converter is easier to use for all kinds of conversions
Project 4: The Geometry Cat
The Geometry cat can make any shape. Use slider to set the number of sides and click on the cat. Press space to clear the screen.
Currently the cat can draw a square using the given code. Modify the code to make it draw a hexagon or an octagon? Can you find the formula so it can draw ANY shape and change the code so it works with the slider?
Project 5: The y = x + c graph Cat
Currently this cat always draws the line for y = x
Change the code so it draws a line for y = x + constant
where user can change the constant using the slider.
(optional) Can you have the cat draw each line in a different color.
Project 6: How many minutes left ?
The cat gives the current time at the user's location. Add code so when user clicks on the cat, it tells how many minutes left to the top of the hour (i.e till the next hour starts)
Project 7: The distance formula calculating Cat
Cat starts at a fixed place and then draws a line to the mouse pointer Add code to calculate the length of the line using the distance formula.
(Optional : Calculate the area of the the pythagorean triangle drawn by the cat and have the cat say it at the end)
Project 8: The Cat Timer
Make a cat timer. When user presses on the cat, the cat counts down - and then when the time is over, it changes color/ makes a sound or says time is over...
Version 1. Make a 30 second timer where there is no way to see the count is going down (slider value does not change, cat does not say anything).
Version 2 ( extra challenge) , let the cat say ' 3, 2, 1...' show the counting as time counts down and even have the slider value show the change.
Version 3: Make it even better. Let user select the timer using the slider. Add sound, a button to stop the timer, or start the timer.
Project 9: The Shopping App
Finish the shopping app where the user clicks on the item to add it to the cart and the price updates automatically.
If the user clicks on Empty Cart, all items go to 0.
Start by making the total cost change based on the number of hats. Then add variables for the other items. Change the items and prices and make this a better project.
Project 10: The Cylinder Calculator Cat
Add code to calculate the volume of the cylinder
Optional: Add code and text to show the surface area.