Exam Details
Subject | c++ lab | |
Paper | ||
Exam / Course | m.sc. (software engineering) | |
Department | ||
Organization | Alagappa University Distance Education | |
Position | ||
Exam Date | May, 2018 | |
City, State | tamil nadu, karaikudi |
Question Paper
DISTANCE EDUCATION
M.Sc. (Software Engineering) Years Integrated) DEGREE
EXAMINATION, MAY 2018.
LAB
Time Three hours Maximum 100 marks
ONE question should be given to each candidate
by LOT system.
Each sub-division carries 50 marks.
1. Create a class DONOR that contains donor number,
name, age, address, sex, blood group. Write a
program using to print out the number, name
and address of the donors for the following
categories.
Blood donors having blood group
Female donors in the age group between
16 and 25
Write a program using polymorphism to calculate
the square of any two numbers of type int, float,
double and long.
2. Write a menu driven program to add and
subtract given two matrices of order m x n defined
in a class, using operator overloading.
Writ a program to implement four function
(addition, subtraction, division and multiplication)
Calculator.
Sub. Code
26
DE-7059
2
wk4
3. Using pointers, create a class and write a program
to get the n names and display them in sorted order.
Rasing a number n to power p is the same as
multiplying by itself p times. Write a function called
power that takes a double value for an int
value for p and returns the result as double value.
Use default argument of 2 for so that if this
argument is omitted, the number will be squared.
Write a main function that gets values from the
user to test this function.
4. Create a class employee that contains a employee
number, name and address. Write a menu driven
program to get number of employee details
and display all details in employee name-wise
sorted order.
Write a program in to perform complex number
arithmetic operations using operator overloading.
5. Using dynamic constructors, write a program
to concatenate two given strings.
Define a class to represent a bank account with data
members name of the depositor, account number,
type of account and member functions deposit
amount and withdraw amount. Show name and
balance. Write a program to test this class.
3
wk4
6. Write a program to process students marks with the
help of classes. The class has private variables for
names, mark1, mark2 and mark3. It has two
member functions get data( to get input and
result( to print the results. All subject marks must
be x50 for pass otherwise fail.
Imagine a publishing company that markets both
books and audio cassette versions of its works.
Create a class publication that stores the title
string) and price (float) of a publication. From
this class derive two classes Book, which adds a
page count and TAPE which adds a length
count (int). Each of these three classes should have
a getdata( function to get its data from the user at
the keyboard and a putdata( function to display its
data. Write a main( function to test the book and
tape classes by creating instances of them, asking
the uses to fill their data with getdata( and then
display the data with putdata(
7. Write a program to find the difference and total
length of given two various tubes specifies in meters
and centimeters using operator overloading.
Write a program to overload the operator to
provide string addition.
8. Create a class EMPLOYEE that contains employee
number, name, designation, basic pay, LIC and PF.
Include a member function to getdata from user for
employees. Write a program to prepare the
pay slips for number of employees in a neat
format.
Write a program to find the smallest of three
numbers using inline function.
———————
M.Sc. (Software Engineering) Years Integrated) DEGREE
EXAMINATION, MAY 2018.
LAB
Time Three hours Maximum 100 marks
ONE question should be given to each candidate
by LOT system.
Each sub-division carries 50 marks.
1. Create a class DONOR that contains donor number,
name, age, address, sex, blood group. Write a
program using to print out the number, name
and address of the donors for the following
categories.
Blood donors having blood group
Female donors in the age group between
16 and 25
Write a program using polymorphism to calculate
the square of any two numbers of type int, float,
double and long.
2. Write a menu driven program to add and
subtract given two matrices of order m x n defined
in a class, using operator overloading.
Writ a program to implement four function
(addition, subtraction, division and multiplication)
Calculator.
Sub. Code
26
DE-7059
2
wk4
3. Using pointers, create a class and write a program
to get the n names and display them in sorted order.
Rasing a number n to power p is the same as
multiplying by itself p times. Write a function called
power that takes a double value for an int
value for p and returns the result as double value.
Use default argument of 2 for so that if this
argument is omitted, the number will be squared.
Write a main function that gets values from the
user to test this function.
4. Create a class employee that contains a employee
number, name and address. Write a menu driven
program to get number of employee details
and display all details in employee name-wise
sorted order.
Write a program in to perform complex number
arithmetic operations using operator overloading.
5. Using dynamic constructors, write a program
to concatenate two given strings.
Define a class to represent a bank account with data
members name of the depositor, account number,
type of account and member functions deposit
amount and withdraw amount. Show name and
balance. Write a program to test this class.
3
wk4
6. Write a program to process students marks with the
help of classes. The class has private variables for
names, mark1, mark2 and mark3. It has two
member functions get data( to get input and
result( to print the results. All subject marks must
be x50 for pass otherwise fail.
Imagine a publishing company that markets both
books and audio cassette versions of its works.
Create a class publication that stores the title
string) and price (float) of a publication. From
this class derive two classes Book, which adds a
page count and TAPE which adds a length
count (int). Each of these three classes should have
a getdata( function to get its data from the user at
the keyboard and a putdata( function to display its
data. Write a main( function to test the book and
tape classes by creating instances of them, asking
the uses to fill their data with getdata( and then
display the data with putdata(
7. Write a program to find the difference and total
length of given two various tubes specifies in meters
and centimeters using operator overloading.
Write a program to overload the operator to
provide string addition.
8. Create a class EMPLOYEE that contains employee
number, name, designation, basic pay, LIC and PF.
Include a member function to getdata from user for
employees. Write a program to prepare the
pay slips for number of employees in a neat
format.
Write a program to find the smallest of three
numbers using inline function.
———————
Other Question Papers
Subjects
- c programming – lab
- c++ lab
- case tools lab
- computer graphics and multimedia
- computer networks
- cryptography and network security
- data structures lab
- data ware housing and mining
- distributed computing
- internet and java - lab
- internet and java programming
- mobile communications
- object oriented programming and c++
- open source architecture
- open source lab
- operating systems
- relational database management system
- relational database management systems –lab
- software engineering
- software project management and metrics
- software quality assurance and standards
- software testing and reuse
- unix and shell programming
- visual basic and vc++ lab
- visual programming
- web technology
- web technology — lab