PRACTICAL FILE
OF
PROGRAMMING IN PHP
UGCA (1930)
I.K. GUJRAL PUNJAB TECHNICAL UNIVERSITY, JALANDHAR
SUBMITTED TO: SUBMITTED BY:
MS. JAPPREEET KAUR KUSAM
2224203
BCA (5th SEM)
1|Page 2224203
TABLE OF CONTENT
NO. CONTENT SIGN
1 1. Take values from the user and compute sum, subtraction,
multiplication, division and exponent of value of the variables.
2 Write a program to find area of following shapes: circle, rectangle,
triangle,
3 Compute and print roots of quadratic equation.
4 . Write a program to determine whether a triangle is isosceles or not?
5 Print multiplication table of a number input by the user.
6 Calculate sum of natural numbers from one to n number.
7 Print Fibonacci series up to n numbers e.g. 0 1 1 2 3 5 8 13 21…..n
8 Write a program to find the factorial of any number.
9 Determine prime numbers within a specific range.
10 Write a program to compute, the Average and Grade of students marks.
11 Compute addition, subtraction and multiplication of a matrix.
12 Count total number of vowels in a word “Develop & Empower
Individuals”.
13 Determine whether a string is palindrome or not?
14 Display word after Sorting in alphabetical order.
15 Check whether a number is in a given range using functions.
16 and lower case letters available in that string.
17 Design a program to reverse a string word by word.
18 Write a program to create a login form. On submitting the form, the user
should navigate to profile page
19 Design front page of a college or department using graphics method.
20 Write a program to upload and download files.
2|Page 2224203
PRACTICAL :1
Take values from the user and compute sum, subtraction, multiplication,
division and exponent of value of the variables
OUTPUT
3|Page 2224203
PRACTICAL :2
Write a program to find area of following shapes: circle, rectangle, triangle,
square, trapezoid and parallelogram.
OUTPUT
4|Page 2224203
PRACTICAL :3
Compute and print roots of quadratic equation.
OUTPUT
5|Page 2224203
PRACTICAL :4
Write a program to determine whether a triangle is isosceles or not?
OUTPUT
6|Page 2224203
PRACTICAL :5
Print multiplication table of a number input by the user
7|Page 2224203
OUTPUT
8|Page 2224203
PRACTICAL :6
Calculate sum of natural numbers from one to n number
OUTPUT
9|Page 2224203
PRACTICAL :7
Print Fibonacci series up to n numbers e.g. 0 1 1 2 3 5 8 13 21…..n
OUTPUT
10 | P a g e 2224203
PRACTICAL :8
Write a program to find the factorial of any number.
OUTPUT
11 | P a g e 2224203
PRACTICAL :9
Determine prime numbers within a specific range
OUTPUT
12 | P a g e 2224203
PRACTICAL :10
Write a program to compute, the Average and Grade of students marks
OUTPUT
13 | P a g e 2224203
PRACTICAL :11
Compute addition, subtraction and multiplication of a matrix.
14 | P a g e 2224203
OUTPUT
15 | P a g e 2224203
PRACTICAL :12
Count total number of vowels in a word “Develop & Empower Individuals”.
OUTPUT
16 | P a g e 2224203
PRACTICAL :13
Determine whether a string is palindrome or not?
OUTPUT
17 | P a g e 2224203
PRACTICAL :14
Display word after Sorting in alphabetical order
OUTPUT
18 | P a g e 2224203
PRACTICAL :15
heck whether a number is in a given range using functions
OUTPUT
19 | P a g e 2224203
PRACTICAL :16
Write a program accepts a string and calculates number of upper case letters
and lower case letters available in that string
OUTPUT
20 | P a g e 2224203
PRACTICAL :17
Design a program to reverse a string word by word
OUTPUT
21 | P a g e 2224203
PRACTICAL :18
Write a program to create a login form. On submitting the form, the user
should navigate to profile page
22 | P a g e 2224203
23 | P a g e 2224203
OUTPUT
24 | P a g e 2224203
PRACTICAL :19
Design front page of a college or department using graphics method.
25 | P a g e 2224203
OUTPUT
26 | P a g e 2224203
PRACTICAL :20
Write a program to upload and download files.
27 | P a g e 2224203
OUTPUT
28 | P a g e 2224203
29 | P a g e 2224203