Practical File GR 9 AI
Practical File GR 9 AI
Dubai
Artificial Intelligence
Practical File
Session 2020 – 2021
Subject Code – 417
1 Dream House 3
4 Sustainable goals 9
5 Student performance 10
6 Problem scoping 11
7 Data Exploration 12
8 Modeling 15
9 Python Programming 16
10 SEA-Pixel IT 17
11
12
13
Q1. Design a layout of a floor plan of your dream smart home. Include any gadgets or devices that you
think will make it unique or “smart”. AI_Curriculum_Handbook pg: no:27
Output
Features:
•My home would have solar panels, and that will allow me to consume as much as
energy as needed.
•My door would have face recognition system, if someone unknown is at my door, I will
get the image of that person on my phone
•My balcony would be spacious so I can relax and enjoy the view
•My home would have a voice recognition system too
•In My dining room would have a home assistant system that would check my heart
rate and set the mood accordingly.
•my bedroom would have a comfortable bed so I can have a nice sleep and relax on my
bed and it would have an AI assistant which can be controlled by my voice so I can ask
it to turn the lights off or play music, etc.
Q2. Letter to Future Self-Imagine the world in 2030 and write a letter to your future self. Be sure to
mention things that you think your future self would probably be doing and experiencing in daily life.-
AI_Curriculum_Handbook pg: no25
Output
Place: Dubai
Date: 15:2:2021
Dear future Yusuf, it feels a little strange to be writing a letter to my future self, but it’s also rather
exciting! At present I am very interested in and am sure this is a hobby that has proved beneficial and I
am now a skilled computer engineer. So tell me have things changed a lot? Do we still have a lot of
qualities in common? Has Artificial Intelligence proved to be useful in everyday life and make living a lot
easier and better? You must be so used to fast internet and controlling pretty much everything in your
house using voice control or just have things automatically adapt based on the surrounding like a
swimming pool that automatically adjusts the temperature of the water based on the temperature or
weather while we struggle with slow internet and doing work on slow hardware and doing a lot of stuff
manually. Is our Pet Rico doing well or have you replaced it with robot dog? Ha! Ha! It’s so much easier,
right?! How is your preparation for the new job? Must be really nice to be working at a high paid job in a
multinational company. Am sure things have turned out well for you in 2030. I hope you’re doing well
and doing what you love! It’s been nice writing to you and I hope this letter brings back old memories…
Sincerely, Yusuf
Q3. Using your floor Plan as a base for your story, use the Inkle Writer(www.inklewriter.com) and write
a story. Please refer- https://www.youtube.com/watch?v=GnXcWwV1p_g
Output
https://inklewriter.com/stories/46398
Q4. SUSTAINABLE DEVELOPMENT GOALS-Take a look at the pictures and try to give the theme of each
picture : AI_Curriculum_Handbook pg: no 34&35(complete it
1- no poverty
2 - zero hunger
4 - quality education
5 - gender equality
10 - reduced inequalities
13 - climate action
14 - life on land
1.Bar graph
A bar chart or bar graph is a chart or graph that presents categorical data with
rectangular bars with heights or lengths proportional to the values that they represent.
2.Histogram
A histogram is a graphical display of data using bars of different heights. In a histogram, each bar
groups numbers into ranges.
The histogram is used for variables whose values are numerical and measured on an interval
scale. It is generally used when dealing with large data sets
3.Donut chart
Donut charts are used to show the proportions of categorical data, with the size of each piece
representing the proportion of each category.
4. Bubble chart
A bubble chart is a type of chart that displays three dimensions of data.
Bubble charts are often used to present financial data.
5. Heat map
A heat map is a data visualization technique that shows magnitude of a phenomenon as color in two
dimensions. The variation in color may be by hue or intensity, giving obvious visual cues to the
reader about how the phenomenon is clustered or varies over space.
Heat maps are used to show relationships between two variables, one plotted on each axis.
Q 8. Modelling-Make a decision tree upon COVID-19(Example-vaccination/ safety
protocols/guidance…etc.)
Vaccinated ?
No
Yes
Yes No
Symptoms Continue
too serious? following
protocols
Yes No
t Quarantine at home
Go to
hospital for at least two weeks
Python Programming
Q1. Write a python program to find the area of rectangle using input()
Output
Output
SEA
1. Pixel It- AI_Curriculum_Handbook:PG:NO:94-
REFER- C https://www.youtube.com/watch?v=TcVCjetCC7Q
Follow the instructions step-by-step as mentioned below:
Cut out the matrix from the page given below or draw the same on a blank page with
6x6 square blocks.
Write an uppercase alphabet on this matrix. The height of the alphabet should be equal
to the height of this matrix. In other words, it should start from the bottom line of the
matrix till the top line. You can write any capital alphabet in any handwriting.
Now, colour the boxes on which the lines of that alphabet have fallen.
After this, cut out horizontal stripes of the matrix such that it goes from 1-2, 2-3, 3-4, 4-
5, 5-6 and 6-7.
Now, paste all these stripes together to form a single paper string. Make sure that the
last block should neither be over the first block of next line nor should there be any gap
in between the first and the last blocks. Purpose: To know how the computer classifies
images as well as how the computer reads them. Say: “For the next activity, we will look
at how computers process, classify and see images. This is an example of a machine
learning approach that is typically used in computer vision applications.” The steps of
this activity are given in the Students Handbook. After the activity, say: “In the Decision
Tree activity, we tried a rule based approach and in the Pixel It activity we tried the
machine learning approach. So how is machine learning different? In machine learning,
what you want to accomplish is for the machine to be producing the model for you.
What you will provide is the training data, and the machine will undergo a training
process and produce the model.”
Now, find those students in your class who have chosen the same alphabet as you. Put
their paper strings under your string and add up all the coloured blocks to get a series of
numbers. A block without colour counts as 0 while the coloured ones count as 1. If a
column has 3 coloured boxes, the summation turns out to be 3.
Now, get another student whose letter is different from yours. Put his paper string
under your multiple strings (of same alphabet) and see if the pattern of coloured blocks
is the same or not.
● Also, go to other groups and check if their summation series of numbers is the same as
yours or not.
SEA ACTIVITY.
My code: