0% found this document useful (0 votes)
17 views110 pages

XIICS-Practical Portfolio

The document is a certificate for Mr. ____________ from Habib Public High School, confirming completion of practical work in Computer Science for the year 2024-2025. It includes a detailed index of practical programming tasks in C++, covering various topics such as basics, control structures, arrays, functions, pointers, and object-oriented programming. Each task specifies objectives, source code examples, and expected outputs.
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)
17 views110 pages

XIICS-Practical Portfolio

The document is a certificate for Mr. ____________ from Habib Public High School, confirming completion of practical work in Computer Science for the year 2024-2025. It includes a detailed index of practical programming tasks in C++, covering various topics such as basics, control structures, arrays, functions, pointers, and object-oriented programming. Each task specifies objectives, source code examples, and expected outputs.
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/ 110

HABIB PUBLIC HIGH

SCHOOL MT. Khan Road, Karachi


Computer Science
XII

Certificate

It is certified that Mr.

________________________________________ of XII

Computer Science has carried out the necessary practical work as

prescribed by the Aga Khan University Examination Board

(AKUEB) for the year 2024-2025.

___________ ( Mr. Numair Khan / Miss Fatima ) Teacher Computer Science

_____________ Mr. S.M Raza Section Head

Date: ______________

Page 2 of 110
INDEX
LIST OF PRACTICAL

TOPIC : BASICS OF C++

Serial No. Objective Page No. Date

1 Write a C++ program to print biodata, including the Full


Name, GrNo, Class, and House by using appropriate data
types for each field.

2 Write a C++ program to swap the values of two variables


using a third variable.

3 Create a C++ program that swaps the values of two variables


without using a temporary variable.

4 Write a C++ program to calculate and display the area of a


rectangle. Accept the length and width as input.

5 Write a program in “C++” to solve the equation:


K = a3+3a2b+3ab2+b3

6 Create a C++ program to calculate the area of a triangle and


the volume of a sphere.

7 Write a C++ program to accept a temperature in centigrade


(C) and then convert and print it in Fahrenheit (F) and Kelvin
(K). Use the following formulas:
F = 9/5 * C + 32,
K = 273 + C.

8 Write a C++ program to calculate and display the area and


circumference of a circle, using Pi as a constant.

TOPIC 12: CONTROL STRUCTURES

Serial No. Objective Page No. Date

9 Write a program in C++ to find the minimum and maximum


number from three input numbers.

10 Write a program in C++ that takes an integer as input and


determines whether it is even or odd, displaying the result to the
user.

11 Write a C++ program to check whether an inputted alphabet is


uppercase or lowercase.

Page 3 of 110
12 Write a program in C++ to print the multiplication table of N
number from 1 to 10.
Output : Enter a Number to print its multiplication table : 5
5x1=5
5 x 2 = 10
.
.
.
5 x 10 = 50

13 Write a program in C++ language that would meet the


following criteria.
• It should input marks for three subjects, i.e. Physics, Chemistry
and Mathematics.
• The marks should be between 0 and 100 (both inclusive) and if
any marks value entered is outside of this range, then an error
message should be displayed.
• It should calculate and display the average marks of the three
subjects.
• It should display relevant remarks depending upon the average
marks of the three subjects. (See table)

Average Marks Remarks

80 to 100 Excellent

60 to 79 Good

50 to 59 Satisfactory

0 to 49 Needs Improvement

14 Calculate the electricity bill on the basis of charges allocated


to each unit range. Current Units will be entered by the user
which should be greater than previous units.
∙ Meter rent=2000
∙ Previous units=3450
∙ Charges allocated per unit:
1- Less than 50 Units =10.5
2- 50-200 Units = 12.5
3- above 300 Units =15
Formula:
Current Month Charges= Meter rent+ Previous Balance(If
any)+ (Charges per unit* Current Units)

15 Write a program in C++ to calculate the factorial of a


number using a for loop.

16 Write a program in C++ to use all arithmetic operators using


switch statements. User can select the operation by menu and
input of two variables should be taken.

17 Write a program to print the sum of the first 15 positive numbers.

18 Write a program to print the sum of even numbers from 1 to 15.

Page 4 of 110
19 Write a C++ program to generate and display both odd and even
numbers in the range from 1 to 20 using a loop.
Odd Numbers Even Numbers
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20

20 Create a C++ program to print the square and cube from 5 to


20 using a loop.

21 Create a program to print square shape by using nested loop.


****
****
****
****

22 Write a C++ program to print the ASCII table from 33 to 127


using for-loop.

23. Write a C++ program to print the following pattern:


1
22
333
4444
55555

24. Create a program to print pyramid by using nested for loop.


*
***
*****
*******
*********

25. Write a C++ program to print the following pattern:


1
12
123
1234
12345

26. Write a C++ program to print the following pattern:


1
23
456
7 8 9 10
11 12 13 14 15

Page 5 of 110
27. Write a C++ program to print a right-angled triangle pattern of
stars.
*
**
***
****
*****

28. Write a program to print an inverted right-angled triangle


pattern of numbers.

12345
1234
123
12
1

29. Write a program to print an inverted right-angled triangle


pattern of stars.

*****
****
***
**
*

30. Write a program to print an inverted right-angled triangle


pattern of stars.

*****
****
***
**
*

31. Write a program to print an inverted right-angled triangle


pattern of stars.

54321
4321
321
21
1

32. Write a C++ Program to find out the reverse of an input


number. Use Modulus Logic in this program.

33. Write a C++ Program to find out whether the input number
is Armstrong Number or not.

34. Write a C++ program to generate the first N terms of the


Fibonacci series.

Page 6 of 110
TOPIC 13: ARRAY AND STRINGS
Serial No. Objective Page No. Date

35. Write a C++ program which stores numeric values in a one


dimensional array using a for loop and finds the highest, lowest
and average values.

36. Write a C++ program for adding/ subtracting/ multiplying


two integer matrices of the order up to 4x4

37. Write C++ program to take input of first name and last name
from the user and find the length of the string. If string length is
greater than 15 take the input again. (Use do-while loop)
Concatenate the first name and last name at the end to print on
the screen.

38. Write a program to take the input of username and password.


Using strcmp() compares the password and username with
default values. UserName= ComputerStudent
Password=12345

39. Write a program to input two strings. Copy string 1 into string 2.

40. Create a user defined function in C++ program with the name
of (Fact) which takes one integer argument and returns its
factorial.

TOPIC 14: FUNTIONS

Serial No. Objective Page No. Date

41. Write a program involving user defined function to perform


basic arithmetic operations, i.e. add, subtract, multiply and
divide. Use switch case to select any user defined function and
take two inputs from the user.

42. Write a program involving user defined function to calculate area


of circle, triangle and parallelogram.

43. Write a program involving use of user defined function to


calculate volume of cylinder, sphere and cube

44. Create a user defined function in C++ program which takes


marks for five subjects as argument & returns the percentage.
Call the function from the main function.

TOPIC 15: POINTERS

Serial No. Objective Page No. Date

45. Write a simple program using & to return the memory


address of a variable and storing it in a pointer variable.

Page 7 of 110
46. Write a C++ program that uses a pointer variable. Create
pointer variables for int, char, double and float.

47. Write a C++ program to store pointer of pointer variable.

48. Write a C++ program that uses a pointer variable. Using a for
loop, find the next four addresses of the variable.

TOPIC 16: OBJECT ORIENTED PROGRAMMING


Serial No. Objective Page No. Date

49. Write a program that defines a shape class with a constructor that
gives value to width and height. The define two subclasses
triangle and rectangle, that calculate the area of the shape area ().
In the main, define two variables a triangle and a rectangle and
then call the area() function in these two variables.

50. Write a C++ program in which a class uses both public and
private access specifiers

51. Write a program with a mother class animal. Inside it defines a


name and an age variables, and set_value() function and
getAge() function.Then create two child classes with the
names, Zebra and Dolphin inheriting the functions of getAge.

Page 8 of 110
PRACTICAL # 1

OBJECTIVE:

Write a C++ program to print biodata, including the Full Name, GrNo, Class, and House by using
appropriate data types for each field.

SOURCE CODE:
#include <iostream>

using namespace std;

int main()

char Name[15],Class[10],House[6];

int GrNO;

cout<<"Enter your Name: \n";

cin>>Name;

cout<<"Enter your Gr NO: \n";

cin>>GrNO;

cout<<"Enter your Class: \n";

cin>>Class;

cout<<"Enter your House: \n";

cin>>House;

cout<<"\nYour Name is "<<Name;

cout<<"\nYour GR NO. is "<<GrNO;

cout<<"\nYour Class is "<<Class;

cout<<"\nYour Class is "<<House;

return 0;

Page 9 of 110
OUTPUT

Page 10 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 11 of 110
OUTPUT

Page No. ______

Page 12 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page No. ______

Page 13 of 110
OUTPUT

Page No. ______

Page 14 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page No. ______

Page 15 of 110
OUTPUT

Page 16 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 17 of 110
OUTPUT

Page No. ______

Page 18 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page No. ______

Page 19 of 110
OUTPUT

Page 20 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 21 of 110
OUTPUT

Page 22 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 23 of 110
OUTPUT

Page 24 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 25 of 110
OUTPUT

Page 26 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 27 of 110
OUTPUT

Page 28 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 29 of 110
OUTPUT

Page 30 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 31 of 110
OUTPUT

Page 32 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 33 of 110
OUTPUT

Page 34 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 35 of 110
OUTPUT

Page 36 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 37 of 110
OUTPUT

Page 38 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 39 of 110
OUTPUT

Page 40 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 41 of 110
OUTPUT

Page 42 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 43 of 110
OUTPUT

Page 44 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 45 of 110
OUTPUT

Page 46 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 47 of 110
OUTPUT

Page 48 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 49 of 110
OUTPUT

Page 50 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 51 of 110
OUTPUT

Page 52 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 53 of 110
OUTPUT

Page 54 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 55 of 110
OUTPUT

Page 56 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 57 of 110
OUTPUT

Page 58 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 59 of 110
OUTPUT

Page 60 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 61 of 110
OUTPUT

Page 62 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 63 of 110
OUTPUT

Page 64 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 65 of 110
OUTPUT

Page 66 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 67 of 110
OUTPUT

Page 68 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 69 of 110
OUTPUT

Page 70 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 71 of 110
OUTPUT

Page 72 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 73 of 110
OUTPUT

Page 74 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 75 of 110
OUTPUT

Page 76 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 77 of 110
OUTPUT

Page 78 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 79 of 110
OUTPUT

Page 80 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 81 of 110
OUTPUT

Page 82 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 83 of 110
OUTPUT

Page 84 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 85 of 110
OUTPUT

Page 86 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 87 of 110
OUTPUT

Page 88 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 89 of 110
OUTPUT

Page 90 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 91 of 110
OUTPUT

Page 92 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 93 of 110
OUTPUT

Page 94 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 95 of 110
OUTPUT

Page 96 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 97 of 110
OUTPUT

Page 98 of 110
Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 99 of 110
OUTPUT

Page 100 of 110


Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 101 of 110


OUTPUT

Page 102 of 110


Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 103 of 110


OUTPUT

Page 104 of 110


Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 105 of 110


OUTPUT

Page 106 of 110


Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 107 of 110


OUTPUT

Page 108 of 110


Practical #_____

Objective:
_________________________________________________________
_________________________________________________________

Source Code:

_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________
_________________________________________________________

Page 109 of 110


OUTPUT

Page 110 of 110

You might also like