🧠Concept
Pick the right answer.
([floor ▾] of (3.9)) return?([abs ▾] of (-25)) return?([sqrt ▾] of (answer)) and the user typed -4. What does Scratch display?([sqrt ▾] of ()) block are used to calculate the star's x and y positions?👀Code Reading
Look at the blocks. Predict what happens.
when flag clicked ask [Enter a number:] and wait say ([ceiling v] of (answer)) for (2) seconds
distance if Pico is at x:0 y:0 and Star is at x:3 y:4?when flag clicked set [distance v] to ([sqrt v] of ((((x position) - ([x position v] of [Star v])) * ((x position) - ([x position v] of [Star v]))) + (((y position) - ([y position v] of [Star v])) * ((y position) - ([y position v] of [Star v])))))
when flag clicked ask [Enter a number:] and wait set [input v] to (answer) say (join [abs: ] ([abs v] of (input))) for (2) seconds say (join [floor: ] ([floor v] of (input))) for (2) seconds
🐛Find the Bug
Something is broken. Pick the fix.
This script should display the square root of any number the user types, but when the user enters a negative number it shows "NaN". What is the fix?
when flag clicked ask [Enter a number:] and wait set [result v] to ([sqrt v] of (answer)) say (result) for (2) seconds
🛠️Build It
Pick a level. Build it. Check the boxes.
Show abs, floor, and ceiling.
More
Build the math calculator. Ask the user for a number, then display the abs, floor, and ceiling results one at a time. Test with -3.5.
Done when
abs, floor, and ceiling outputs are correct for negative and decimal inputs.
Show the distance to the middle.
More
Add the distance tracker. Create a Star sprite and a forever loop that calculates and displays the Pythagorean distance between Pico and Star using ([sqrt ▾] of ()). Drag the sprites and confirm the distance monitor updates.
Done when
Distance formula uses sqrt and multiply correctly. Monitor updates in real time as sprites move.
Orbit around the center.
More
Build the circular orbit. Add a variable angle. Use cos(angle) * radius for x and sin(angle) * radius for y so the Star orbits around Pico. Change the (80) and (2) numbers and confirm the orbit responds.
Done when
cos used for x offset, sin used for y offset. Orbit is smooth. A bigger (80) makes a wider ring, and a bigger (2) makes it faster.
Review the student's project, then check each thing they did.
Project Evaluation
0 of 4 ticked
💬Talk About It
Present your project to your teacher or a classmate.
- 1️⃣Show your project.
- 2️⃣Point to the
floorblock and theceilingblock. - 3️⃣Say what each one does.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 3 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered