Practical File IWD
Practical File IWD
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
Once the software bundle has been downloaded, you can start the
installation by double clicking on the file with the ending .exe.
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.
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.
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’.
For the next step, you need to select the directory where XAMPP should
be installed
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.
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.
Once all the components are unpacked and installed, you can close the
setup wizard by clicking on ‘Finish’. Click to tick the corresponding check
box and open the XAMPP Control Panel once the installation process is
finished.
Output:-
Practical 2
Aim :- Create a web page that collects user information using a form and displays it when
the user clicks the submit button.
Output;-
Practical 3
Aim :-
i. Write a script to implement a simple calculator for mathematical operations.
Output:-
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.
Output:-
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:-
PRACTICAL-4[B]
AIM: Write a script to read the marks of 4 subjects and display the result as per the below
instructions:
Output:-
Practical 4[C]
Aim:-Write a script to display Fibonacci numbers up to a given term.
Output:-
Practical 4[D]
Aim:-Write a script to display a multiplication table for the given number.
Output:-
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.
Output:-
Practical 5[B]
Write a script to sort a given indexed array.
Output:-
Practical 7[1]
a. Define a class with constructor and destructor.
Output:-
b. Create an object of a class and access its public properties and methods.
Output:-
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:-
Practical 7[3]
Aim:- Write a script to demonstrate single inheritance.
Output:-
Practical 7[4]
Aim:- Write a script to demonstrate multiple inheritance.
Output:-
Practical 7[5]
Aim:- Write a script to demonstrate multilevel inheritance.
Output:-
Practical 7[6]
Aim:- Write a script to demonstrate method overriding.
Output:-
Practical 7[7]
Aim:- Write a script to demonstrate method overloading based on the number of
arguments.
Output:-
Practical 7[8]
Aim:- Write a script to demonstrate a simple interface.
Output:-
Practical 7[9]
Aim:- Write a script to demonstrate a simple abstract class.
Output:-
Practical 7[10]
Aim:- Write a script to demonstrate cloning of objects.
Output:-