Softwarechits12prog New
Softwarechits12prog New
15 1
(15)
a) Create a simple HTML page on any of the following topics:
College Profile, Computer Manufacturer or Software Development Company.
The page must consist of at least 3 paragraphs of text. The page must have an appropriate
title, background color or background images, and hyperlinks to other pages. The
paragraphs must have text consisting of different colors and styles in terms of alignment
and font size.
b) Save the file and view the same using any HTML browser. Verify functioning of the (10)
hyperlinks.
c) Obtain a hardcopy of the HTML code only. (05)
EXPERIMENT NO. 16 2
(15)
a) Create a simple HTML page on any of the following topics:
College Profile, Computer Manufacturer or Software Development Company.
The page must consist of scrolling marquee displaying an appropriate message. The page
must include a table with at least 5 rows and 3 columns having merged cells at least at 1
place. The page must also display an image, such that when the same is viewed through a
browser and the mouse pointer is placed on the image, an appropriate text message should
be displayed. The image itself should also act as a hyperlink to another page.
b) Save the file and view the same using any HTML browser offline. Verify functioning of the (10)
hyperlinks.
c) Obtain a hardcopy of the HTML code only. (05)
EXPERIMENT NO. 2 3
a) Write a program in C++ with ratio class using number function like assign() function to (15)
initialise its member data (integer numerator and denominator), convert() function to
convert the ratio into double, invert() function to get the inverse of the ratio and print()
function to print the ratio and its reciprocal.
b) Enter the program and verify proper execution of the same on the computer. (10)
c) Obtain a hardcopy of the program listing as well as output.
(05)
EXPERIMENT NO. 12
4
a) Write d program in Visual Basic to find the sum of first 100 numbers entered using Do (15)
loop.
b) Enter the program and verify proper execution of the same on the Computer. (10)
c) Obtain a hardcopy of the program listing by printing the FRM file. (05)
EXPERIMENT NO. 9 5
a) Write a program in Visual Basic that calculates area and selection of two shapes, Circle and (15)
Rectangle.
b) Enter the program and verify proper execution of the same on the Computer. (10)
c) Obtain a hardcopy of the program listing by printing the FRM file. (05)
EXPERIMENT NO. 10 6
a) Write a program in Visual Basic that constructs a scientific calculator with SIN, COS, TAN, (15)
LOG, l/X (reciprocal) and SQR (Square Root) functions only. Display the error messages as
and when required.
b) Enter the program and verify proper execution of the same on the Computer. (10)
c) Obtain a hardcopy of the program listing by printing the FRM file. (05)
EXPERIMENT NO. 1 7
a) Write a function in C++ that exchanges data (passing by reference) using swap function to (15)
interchange the given two numbers.
b) Enter the program and verify proper execution of the same on the computer. (10)
c) Obtain a hardcopy of the program listing as well as output. The output must list the given (05)
numbers before as well as after swapping.
EXPERIMENT NO. 4 8
a) Write a program in C++ that initialises a ratio class with no parameters as a default (15)
constructor. The program must print the message, “OBJECT IS BORN” during initialisation.
It should display the message “NOW X IS ALIVE”, when the first member function ratio x is
called. The program must display “OBJECT DIES” when the class destructor is called for the
object when it reaches the end of its scope.
b) Enter the program and verify proper execution of the same on the computer. (10)
c) Obtain a hardcopy of the program listing as well as output. (05)
EXPERIMENT NO. 3 9
a) Implement a circle class in C++. Each object of this class will represent a circle, storing its (15)
radius and x and y co-ordinates of its centre as float’s. Include a default constructor, access
function, an area() function and a circumference() function. The program must print the co-
ordinates with radius, area and circumference of the circle.
b) Enter the program and verify proper execution of the same on the computer. (10)
c) Obtain a hardcopy of the program listing as well as output. (05)
EXPERIMENT NO. 5 10
a) Write a program in C++ with a complex constructor to add the given two complex (15)
numbers A = 4+5i and B = 5+3i . The program should print the given complex numbers
and their sum.
b) Enter the program and verify proper execution of the same on the computer. (10)
c) Obtain a hardcopy of the program listing as well as output. (05)
EXPERIMENT NO. 7 11
a) Write a program in C++ using virtual function. The program must declare p to be a pointer (15)
to objects of the base class person. First, the program must assign p to point an instance x
(name of the person eg. “BOB”) of class person. The program must then assign p to point at
an instance y (name of the student, eg. “TOM”) of the derived class student.
b) Define a print() function in the base class such that it invokes the same base class function
to print the name of the person by default. The second call for the same should evoke the
derived class function to print the name of the student.
c) Enter the program and verify proper execution of the same on the computer. (10)
d) Obtain a hardcopy of the program listing as well as output. (05)
EXPERIMENT NO. 8 12
a) Write a program in C++ to read the name of country from one text file and name of its (15)
corresponding capital city from another text file. The program must display the country
name and indicate its corresponding capital (for at least five countries) in the output.
b) Enter the program and verify proper execution of the same on the computer. (10)
c) Obtain a hardcopy of the program listing as well as output. (05)