21
DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45 Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP www.dacc.edu.in Prof . Yogesh .P. Deshmukh Assignment Details Assignment Submission Date Assignment 1 29/10/2021 Assignment 2 15/11/2021 Assignment 3 29/11/2021 Assignment 4 11/12/2021

Assignment Details Assignment Submission Date

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment Details

Assignment Submission Date

Assignment 1 29/10/2021

Assignment 2 15/11/2021

Assignment 3 29/11/2021

Assignment 4 11/12/2021

Page 2: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :1

Unit 1 : PHP Basics

1. )write the syntex of php ?

2. )What is the used of echo in php

3. )What is difference between php and java script?

4. )List out the control structure in php ?

5.)List out the data type in php

Page 3: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :2

Unit 2 : Control Structures and Loops

1) Explain the else if ladder with one example in php

5) Explain the switch condition with one example

6) Explain the for loop with one example ?

7) Explain the for each loop with one example ?

Page 4: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :3

Unit 3 : Function in PHP

1) Explain the user define function in php with one example

2) Explain the max () min() function in phpwith one example

3) Explain the array in php with one example

4) Explain define () with one example

Page 5: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :4

Unit 4 : More with Forms

1) Explain the difference between get & Post method in

php with one example

2) Explain the how you handle the radio button , checkbox

button in php with one example

3) Explain fixed array in php

4) Explain the dynamic array in php one example in php

5) Explain double dimension array?

Page 6: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :5

Unit 5 :- Storing and Protecting Data

1) What is the used of function in php ? explain it with one

example.

2) How You connect to the data base by the use of WAMP.

3) Explain mysql in data base?

4) Explain wamp server in data base.

Page 7: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :6

Unit 6 :- Storing and Protecting Data

1. Explain get method with one example

2. Explain the cookie? with example

3. Explain post method with one example

4. Explain validation of form in php with one example

5. Explain session in php with one example

Page 8: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment of practical’s Details

Assignment Submission Date

Assignment 1 29/10/2021

Assignment 2 15/11/2021

Assignment 3 29/11/2021

Assignment 4 11/12/2021

Assignment 5 20/12/2021

Assignment 6 26/12/2021

Assignment 7 06/01/2021

Assignment 8 10/01/2021

Assignment 9 13/01/2021

Assignment 10 15/01/2021

Page 9: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :1

1. Write a PHP Script to display Quotient and Remainder of the division of two variables.

2. Write a PHP Script to swap the values of two variables.

3. Write a PHP Script which will convert temperatures

from Celsius(C)to Fahrenheit (F). (Hint: C=5.0/9(F-32)

4. Write a PHP Script to display the

surface area and volume of a cuboid.

(Hint: surface area=2(lb+lh+bh ),

volume = l*b*h )

Page 10: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :2

5. Write a PHP Script to calculate the area of Circle, Square, and Rectangle.

6. Write a PHP Script to display the total and percentage

of Marks of Subjects (Out of 100) Data Structure,

Digital Marketing, PHP, SE, and Bigdata.

7. Write a PHP Script to calculate the total cost of AIR

Ticket Reservation and display the details for Name,

Address, Contact No, Source, Destination, Date of

journey, Gender of passenger, No of Persons, Price per

Ticket, etc.

8.Write a PHP script to perform the following operations on string : a. Convert each word of a string to Lowercase and Uppercase.

b. Find the first and last occurrence of string2 in string1.

Page 11: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :3

9. Write a PHP Script to check whether a year is a leap or not.

10. Write a PHP Script which will perform the Addition, Subtraction, Multiplication, and Division of two numbers as per the choice. (Use Switch Case)

11. Write a PHP Script to display the grade of the student according to percentage. Use the following conditions:

a. Percentage <40 => Grade=”Fail” b. Percentage >= 40 and Percentage

<=50 => Grade= “Pass Class” Percentage >=50 and Percentage <=60 => Grade= “Higher Second Class” Percentage >60 and Percentage <=70 => Grade= “First Class”

c. Percentage >70 => Grade= “First Class with Distinction”

12. Write a PHP Script to display prime numbers between 1 to 50.

Page 12: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :4

:

13 .Write a PHP Script to display a perfect numbers between 1 to100. Write a PHP Script to display a perfect numbers between 1 to100. 14. Write a PHP Script to display the reverse of a number. E.g. 607 =>706

15. Write a PHP Script to display Armstrong numbers between

1 to 500.

16. Write a PHP script to display a number in words (Use Switch case) .e.g. 345–three four five

Page 13: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :5

18. Write a PHP script to change the background color of the browser using a switch statement according to the day of the week

19.Write a PHP script to count the total number of even and odd numbers between 50 to 1000.

20. Write a PHP script to define a function EvenOdd, which will display even and odd numbers between 1 to 50

Page 14: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :6

21.Write a PHP Script to define an array. Find the element from the array that matches the given value using the appropriate search function.

22.Write a PHP script to count the total number of vowels

(a,e, i,o,u) from the string. Show the occurrences of each

vowel from the string.

23. Write PHP program to perform the following operations on

Indexed Array: a. Check the array element is positive or negative b. Calculate the average of array elements c. Calculate the sum of array elements

24. Write a PHP script to perform the following operations on string :

a. Convert each word of a string to Lowercase and Uppercase.

b. Find the first and last occurrence of string2 in string1.

Page 15: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :7

25.Write a PHP script to calculate the area and volume of a cylinder using a function.

26.Write a PHP Script to display the sum and average of

array elements(Using predefined functions) 27. Write a PHP script to calculate the factorial of a number using a function. 28.Write a PHP script to define a function “DisplayDay”, 29. Write a PHP script to perform arithmetic operations on

two numbers. Write a PHP function to display the result. (Use

the concept of function and default parameters)

30. To design an application that works as a simple calculator using PHP. (use isset()).

Page 16: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :8

31.Write a PHP script to check PAN number entered by the customer is valid or not and display an appropriate message.

a. Write a PHP script to check mobile number entered by the user is valid or not and display an appropriate message.

32. Write a PHP script to accept font name, background color,

and welcome message on 1st page. Display the welcome

message with the given font and background color on the

next page.

33. Write a PHP program to accept name, address, pincode,

gender information. If any field is blank display error

messages “all fields are required”.

34. Write a PHP script to accept customer name and the list of product and quantity on the first page. On the next page display the name of the customer, name of the products, rate of the product, quantity, and total price in table format.

Page 17: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :9

35. Write HTML code to design multiple choice question paper for PHP subject. Display question wise marks and total marks received by the student in table format.

36. A web application that lists all cookies stored in the browser on clicking “list cookies” button,add cookies if necessary.

37. Write a PHP program to store the current date-time in a COOKIE and display the ‘Last visited on’date-time on the web page upon reopening of the same page.

38 .Write a script to keep track of a number of times the web page has been accessed using the session

Page 18: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

Assignment :10

:

39. Write PHP program to store student information like Seat number, name, and class. On the second page, accept marks of the subject PHP, DS, CPP, and RDBMS. Display Result in table format on the third page (use cookies).

a. Write a PHP script to accept username and password. If in the first three chances, username and password entered is correct, then display the welcome message on the second form, otherwise display an error message.

40. Consider the following entities and their relationships

b. Company (c_no, c_name, c_city, c_share_value) Person (p_no, p_name, p_city, p_ph_no)

c. Relationship between Company and Person is many-to-many with descriptive attribute no_of_shares. Using the above database, write a PHP script to display person wise share detailsin tabular format.

Page 19: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

41. Consider the following entities and their relationships Customer (c_no, c_name, c_city, c_ph_no )

d. Ticket (t_no, booking_date, fare, traveling_date)

42. The relationship between Customer and Ticket is one-to-many. Create a RDB in 3 NF for the above.

e. Using the above database, write a PHP script to accept date and display,

f. The total fare collected from customers on a given date. g. Ticket details booked by the customer.

43.Consider the following entities and their relationships. Employee (eno, ename, sal)

h. Project (pno, pname,duration) i. Employee and Project are related with a many-

many relationship. Create a RDB in 3 NF for the above.

j. Using the above database write a PHP script to accept the project name. Display the name of the employees and the duration of the project.

Page 20: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

44. Consider the following entities and their relationships. Client (c_no, c_name, c_addr, birth_date)

k. Policy_info (p_no, p_name, maturity_amt, prem_amt, policy_term)

l. The relationship between Client and Policy_info is

many-to-many with descriptive attribute

date_of_purchase.Create a RDB in 3NF for the

above.

m. Using the above database write a PHP script to display policy details of a given client for a given year in the following format.

Page 21: Assignment Details Assignment Submission Date

DNYANSAGAR ARTS AND COMMERCE COLLEGE, BALEWADI,PUNE-45

Class :- SYBBA(CA )(III Semester) (2019 Pattern) Sub:- PHP

www.dacc.edu.in Prof . Yogesh .P. Deshmukh

45. Consider the following entities and their relationships. Train(t_no, t_name)

n. Passenger (p_no, p_name, addr, age) o. The relationship between Train and Passenger

is many-to-many with descriptive attribute date,seat_no and amt. Create a RDB in 3 NF for the above.

p. Using the above database write a PHP script to accept a date. Display train details having maximum passenger for a given date.

q. Consider the following entities and their relationships. Crop (c_no, c_name, c_season, pesticides)Farmer (f_no, f_name, f_location)

r. The relationship between Crop and Farmer is

many-to-many with descriptive attribute year.

Create a RDB in 3 NF for the above.

s. Using the above database write a PHP script to

accept crop name and year value. Display total

number of farmers harvesting given crop in a given

year.

=====================//=============================