Programming basics · GCSE · about 25 min
Plan, build and test one program that asks, drives a square, plays notes and reports.
[1 mark]In the project, which of these is an output?
[1 mark]What does this program print?
side = float("12.5")
print("perimeter:", 4 * side)
print("area:", side * side)[1 mark]Why does the project convert the note with int but the side with float?
[1 mark]You test with a side of 10. What should the area be?
# the two lines every program starts with: the commands, then the robot from bugbot import * connect() SPEED = 50 # ask the two questions and convert the answers # drive the square, a note at each corner # print the perimeter and the area
Plan your program here, then type it in and press Run.