Sample Paper For Assignment
Sample Paper For Assignment
Sample Paper For Assignment
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.
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
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