0% found this document useful (0 votes)
21 views2 pages

Lab8 PartB

Uploaded by

leen --
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Lab8 PartB

Uploaded by

leen --
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1501100: Introduction to IT (English)

Fall 2024-25
Lab 8 - Part B
[6 marks] Activity B-1: (Project Name: ID_Lab8_B1) Video Link

Create a Program to draw a pattern consisting of eight squares on the stage using the Pencil sprite.
The squares will all be the same size where the length of the square is entered by the user.
Step 0: Delete the Cat sprite. Add the Pencil sprite – change the name to your ID and Section number.
Add the Pen extension to draw. Change Backdrop to Light.
Step 1: When the green flag is clicked,

− Set the pencil size to 50%


− Go to the center of the stage
− Point in the right direction
− Erase the stage and put pen down before drawing
− Optional: Change pen color and pen size
− Ask the user to: “Enter the square length: ”
Step 2: Start drawing the eight squares
Repeat the following process for the 8 squares:
o You can use repeat for this as well: Draw a square with the answer by the user with
turns of 90 degrees in the clockwise direction.
(wait for 0.25 seconds between each side of the square)

360
o Turn 45 degrees (clockwise) after each square [ = 45] degrees.
8
o Wait for 0.5 seconds after each square
LASTLY, Pen up.
[4 marks] Activity B-2: (Project Name: ID_Lab8_B2) Video Link

Create a Project with the Colorful City backdrop. Add the Prince and Convertible sprites.
Determine if the person can apply for a driving license based on their age.
Repeat the process for all applicants.

When the prince is clicked, it should:


- Ask the user for: “Number of applicants?”
Then for each applicant,
- Ask the user: “Enter the age?”
- Check whether the age is 18 or above and display a suitable message:
If the age is less than 18 then
say “Sorry, you are not ready to drive” for 2.25 seconds
else
say “You may start the application process” for 2.25 seconds
*Submit Part B ONLY on Blackboard*

− Save the 2 projects to your computer (Scratch Projects have the extension .sb3)
− Upload both on BB. You cannot see the preview on Blackboard.
− You cannot open a Scratch file on your computer.

You might also like