0% found this document useful (0 votes)
2 views28 pages

Divish PHP Practical

Uploaded by

Forstac Gaming
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)
2 views28 pages

Divish PHP Practical

Uploaded by

Forstac Gaming
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

Punjab College of Technical Education.

BCA – 5th Semester

Programming in PHP

UGCA-1929

PRACTICAL FILE

Submitted To: Ms. Akhil Singh Submitted By:


Name: Divish Bansal
Roll No.: 2322113
Class: BCA-3D
TABLE OF CONTENT
[Link] Program Description
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 the area of following shapes: circle, rectangle, triangle, square,
trapezoid and parallelogram.

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 student’s 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. Write a program that accepts a string and calculates the number of upper-case letters 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 the profile page along with database connectivity and insertion query.
[Link] values from the user and compute sum, subtraction, multiplication, division and
exponent of value of the variables.
Output:
[Link] a program to find the area of following shapes: circle, rectangle, triangle,
square, trapezoid and parallelogram.
Output:
3. Compute and print roots of quadratic equation
Output:
4. Write a program to determine whether a triangle is isosceles or not?

Output:
5. Print multiplication table of a number input by the user..

Output:
6. Calculate sum of natural numbers from one to n number.

Output:
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.

Output:
9. Determine prime numbers within a specific range.
Output:
10. Write a program to compute, the Average and Grade of student’s
marks.

Output:
11. Compute addition, subtraction and multiplication of a matrix.
Output :
12. Count total number of vowels in a word “Develop & Empower Individuals”.

Output :
13. Determine whether a string is palindrome or not?

Output :
14. Display word after Sorting in alphabetical order.

Output:
15. Check whether a number is in a given range using functions.

Output :
16. Write a program that accepts a string and calculates the number of upper-case
letters and lower-case letters available in that string.

Output :
17. Design a program to reverse a string word by word.

Output :
18. Write a program to create a login form. On submitting the form, the user
should navigate to the profile page along with database connectivity and
insertion query.

[Link]

[Link]
[Link]

[Link]

Output:

You might also like