You are on page 1of 2

Faculty of Computing and Information Technology (FCIT)

Department of Computing Indus University, Karachi

NAME OF STUDENT: ID No:

Assignment
Fall 2022
Department Faculty Total
Program Semester Course Title Instructor Issue Date Due Date Marks
/ Faculty Signature
BS
FCIT Software 7th Mr.Mushtaher 17/11/2022 1/12/2022
Engineerin Artificial 10
g Intelligence

Instructions
1. This paper contains 4 Questions. Attempt all questions.
2. This assignment should be completed within assigned time, after the due date, assignment will
not be accepted.
3. Students of particular course will download assignment and submit solution which will only be
accepted through CMS portal.
4. Please ensure that no part of your assignment should be copied from any other source without
acknowledgment of the source and proper referencing (IEEE).
5. Please note that copy-paste is a serious nature of academic dishonesty, it is called “Plagiarism” and
the penalties are attached to being found guilty of committing such offenses.
6. It is allowed using lecture notes, books, and other sources, however needing to refer/cite properly,
Reference list must be given at end of the assignment.
7. This assignment should be submitted in PDF file for this purpose first take image of all hand written
pages and then merge using Smartphone app (from PC/Laptop put all images in word file and save
as PDF) including assignment paper in the start of submission.
8. Assignment can be compressed or break in two parts if file size is larger than uploading limit.
9. The font size should be 12 in Times New Roman, Line Space 1.5, Main Heading font size Bold
14, Subheading font size 12 Bold and text font size 12 should be used. All figures and
illustrations should be properly titled or numbered on the left side, below.
10. Also ensure that no part of your assignment has been written by any other person, except to the
extent of collaboration and /or group work.
11. In case of theory, the assignment should not exceed than 1000 words and not less than 600
words.
12. Expected outcome of this assignment follows CLO # 4 (C4, PLO-3) - Cognitive Domain:4
(Analyzing); PLO-3: Design/Development of Solutions
This table is for official use; do not write anything on it.

CLOs CLO_1 CLO_2 CLO_3 CLO_4 Total


Question 1 2 3 4
Number
Student’s Score

Maximum Score 2.5 2.5 2.5 2.5 10

This paper has a total of 2 pages including this title page


Faculty of Computing and Information Technology (FCIT)
Department of Computing Indus University, Karachi

NAME OF STUDENT: ID No:

Assignment
CLO-1: Construct python based programs to demonstrate the core principle of Artificial Intelligence (C3, PO-4))
and machine learning.

Q1: Create
an inner function to perform the following calculation: 2.5 mark
 Create an outer function that takes two arguments, X and Y.
 Create an inner function that calculates the sum of X and Y inside an outer function.
 Finally, an outside function will combine 5 and return it.

Q2: Create a parent class named Vehicle, followed by a child class called Bus that inherits all of the Vehicle
class's variables and methods. Make a "colour" class property with the default value of white. In other words,
every automobile should be white.
2.5 mark
Output should be look like this

Q3: Observe following data and plot data using multiple graphs that support the given data
pattern 2.5 mark

Batsman 2017 2018 2019 2020


Virat Kohli 2501 1855 2203 1223
Steve Smith 2340 2250 2003 1153
Babar Azam 1750 2147 1896 1008
Rohit Sharma 1463 1985 1854 1638
Kane Williamson 1256 1785 1874 1974
Jos Butler 1125 1853 1769 1436

Q4: Develop a model that will Predict Heart disease. For this question you will use the dataset
https://drive.google.com/file/d/1CEql-OEexf9p02M5vCC1RDLXibHYE9Xz/view

 Perform some basic EDA on the dataset to find interesting pattern and observation.
2.5 mark
 Use One hot coding to convert categorical variable into dumpy variable (if required)
 Split the data set into train and test dataset using 70-30 split.
 Implement logistic regression from the sklearn library and train your data accordingly

You might also like