Subject Name:-IWD Subject Code:- 4340704
Practical 1
Aim:- i. Install and configure PHP, Web Server and MySQL database using
XAMPP/WAMP/LAMP/MAMP.
ii. Create a web page that displays “Hello World.”
Step 1: Download
XAMPP is a release made available by the non-profit project Apache
Friends. Versions with PHP 5.5, 5.6, or 7 are available for download on
the Apache Friends website.
Step 2: Run .exe file
Once the software bundle has been downloaded, you can start the
installation by double clicking on the file with the ending .exe.
Step 3: Deactivate any antivirus software
Since an active antivirus program can negatively affect the installation
process, it’s recommended to temporarily pause any antivirus software
until all XAMPP components have successfully been installed
Before installing XAMPP, it is advisable to disable the anti-virus program
temporarily
Step 4: Deactivate UAC
User Account Control (UAC) can interfere with the XAMPP installation
because it limits writing access to the C: drive, so we recommend you
deactivate this too for the duration of the installation process. To find out
how to turn off your UAC, head to the Microsoft Windows support pages.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
User account control can affect the installation of XAMPP
Step 5: Start the setup wizard
After you’ve opened the .exe file (after deactivating your antivirus
program(s) and taken note of the User Account Control, the start screen of
the XAMPP setup wizard should appear automatically. Click on ‘Next’ to
configure the installation settings.
You can start the setup on the start up screen.
Step 6: Choose software components
Under ‘Select Components’, you have the option to exclude individual
components of the XAMPP software bundle from the installation. But for a
full local test server, we recommend you install using the standard setup
and all available components. After making your choice, click ‘Next’.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
In the dialog window entitled 'select components', you can choose the
software components before installation
Step 7: Choose the installation directory
In this next step, you have the chance to choose where you’d like the
XAMPP software packet to be installed. If you opt for the standard setup,
then a folder with the name XAMPP will be created under C:\ for you. After
you’ve chosen a location, click ‘Next’.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
For the next step, you need to select the directory where XAMPP should
be installed
Step 8: Start the installation process
Once all the aforementioned preferences have been decided, click to start
the installation. The setup wizard will unpack and install the selected
components and save them to the designated directory. This process can
take several minutes in total. You can follow the progress of this
installation by keeping an eye on the green loading bar in the middle of
the screen.
According to the default settings, the selected software components are
unpacked and installed in the target folder
Step 9: Windows Firewall blocking
Your Firewall may interrupt the installation process to block the some
components of the XAMPP. Use the corresponding check box to enable
communication between the Apache server and your private network or
work network. Remember that making your XAMPP server available for
public networks isn’t recommended.
Step 10: Complete installation
Once all the components are unpacked and installed, you can close the
setup wizard by clicking on ‘Finish’. Click to tick the corresponding check
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
box and open the XAMPP Control Panel once the installation process is
finished.
By clicking on 'finish', the XAMPP Setup Wizard is completed
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
ii. Create a web page that displays “Hello World.”
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 2
Aim :- Create a web page that collects user information using a form and displays it when
the user clicks the submit button.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Output;-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 3
Aim :-
i. Write a script to implement a simple calculator for mathematical operations.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Aim:- ii. A company has following payment scheme for their staff: a. Net Salary = Gross
Salary – Deduction b. Gross Salary = Basic pay + DA + HRA + Medical c. Deduction =
Insurance + PF Where, DA (Dearness Allowance) = 50% of Basic pay HRA (House Rent
Allowance) = 10% of Basic pay Medical = 4% of Basic pay Insurance = 7% of Gross salary PF
(Provident Fund) = 5% of Gross salary.Write a script to take the basic salary of an
employee as input and calculate the net payment to any employee.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
PRACTICAL-4[A]
AIM: Write a script that reads the name of the car and displays the name of the company
the car belongs to as per the below table:
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
PRACTICAL-4[B]
AIM: Write a script to read the marks of 4 subjects and display the result as per the below
instructions:
a. Each of the four subjects is worth 100 marks.
b. If a student gets less than 35 marks in any subject, then he/she will be marked as FAIL,
otherwise he/she will be marked as PASS. The result contains the grade of each individual
subject in tabular format as per the above table.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 4[C]
Aim:-Write a script to display Fibonacci numbers up to a given term.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 4[D]
Aim:-Write a script to display a multiplication table for the given number.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 5[A]
Aim-Write a script to calculate the length of a string and count the number of words in the
given string without using string functions.
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 5[B]
Write a script to sort a given indexed array.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[1]
a. Define a class with constructor and destructor.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
b. Create an object of a class and access its public properties and methods.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[2]
Write a script that uses the set attribute and get attribute methods to access a class’s
private attributes of a class.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[3]
Aim:- Write a script to demonstrate single inheritance.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[4]
Aim:- Write a script to demonstrate multiple inheritance.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[5]
Aim:- Write a script to demonstrate multilevel inheritance.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[6]
Aim:- Write a script to demonstrate method overriding.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[7]
Aim:- Write a script to demonstrate method overloading based on the number of
arguments.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[8]
Aim:- Write a script to demonstrate a simple interface.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[9]
Aim:- Write a script to demonstrate a simple abstract class.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106
Subject Name:-IWD Subject Code:- 4340704
Practical 7[10]
Aim:- Write a script to demonstrate cloning of objects.
Output:-
Name:- Patel Krish A. Enrollment No. :-236040307106