Page 122 - CloudGPT_C7_Flipbook
P. 122
Practical Assessment
Leadership & Responsibility
MakeCode
Critical Thinking
Eat the Fruit
A. Create a game with three sprites, one will be a Player sprite, second will be Fruit sprite and
another will be a Junk food sprite.
Objective of the game:
Move your sprite around the screen and eat as much fruit as you can before the time runs
out!
Every time the fruit is caught, points are added, and the timer is restored.
You will be given three lives to play the game, once you hit third time to the junk food, your
game will be over.
Code:
Output:
Python Critical Thinking
B. Write a program to convert the time given into minutes in hours and minutes.
120 Premium Edition-VII Practical Assessment 121

