Exam Details
Subject | c++ lab | |
Paper | ||
Exam / Course | m.sc. (software engineering) | |
Department | ||
Organization | Alagappa University Distance Education | |
Position | ||
Exam Date | May, 2017 | |
City, State | tamil nadu, karaikudi |
Question Paper
DISTANCE EDUCATION
M.Sc. Years Integrated) DEGREE EXAMINATION,
MAY 207.
C++.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. Write a menu driven program to add, subtract
two given matrices of order m n defined in class,
using operator overloading.
Create a class DONOR that contains donor number,
donor name, age, address, sex, blood group. Write a
program to print the number, name and
address of the donors for the following categories.
Blood donors having blood group
Blood donors in the age group between 20 to
30.
Female donors with blood group in the
age between 20 to 25.
Sub. Code
26
DE-9560
2
Ws7
2. Create a class which consist of EMPLOYEE details
like enumber, ename, department, basicpay, grade.
Write member functions to get and display them.
Derive a class PAY from the above class and write a
member function to calculate da, hra, pf depending
on the grade and display the payslip in a neat
format.
Write a program to find the difference and total
length of given two various tubes specified in meters
and centimeters using operator overloading.
3. Write a program to process students marks with the
help of classes. The class has private variables, for
name, mark1, mark2, mark3. It has two member
functions getdata to get input, result to print
the results. All subjects mark must be for
pass otherwise fail.
Write a program using polymorphism to
calculate the square of any two numbers of type int,
float, double and long.
4. Create a class employee that contains employee
number, employee name and address. Write a menu
driven program to get the details of number
of employees and display all details in employee
namewise sorted order.
Write a program to create a class STRING.
Write a member function to initialize, get and
display strings. Overload the operator to
concatenate two strings, to compare two
strings.
Cut here
Cut here
DE-9560
3
Ws7
5. Create a class called TIME that has integer data
elements for hours, minutes, seconds. The
constructors should initialize these data elements to
specified value, if given, and otherwise to 0. A
member function should display it in hh:mm:ss
format (eg. 11 50 45). The final member function
should add two objects of type TIME passed as
arguments.
Create a class ARITH which consists of a FLOAT
and INTEGER variable. Write member functions
ADD SUB MUL DIV MOD to
perform addition, subtraction, multiplication,
division and modulus division respectively. Write
member functions to get and display values.
6. Assume that you want to generate a table of
multiples of any given number. Write a
program that allows the user to enter the number
and then generates the table, formatting it into ten
columns and twenty lines.
Write a program to find the largest of three
numbers using inline function.
7. Write a program to create a class called
STUDENT with data members Regno, Name and
age using inheritance, create the classes
UGSTUDENT and PGSTUDENT having fields
semester, fees and stipend. Enter the data for
atleast 5 students. Find the average age for all UG
and PG students separately.
Write a program to implement function
overloading in order to compute power where
m is double and n is int
m and n are int.
Cut here
DE-9560
4
Ws7
8. Create a class 'COMPLEX' to hold a complex
number. Write a friend function to add two complex
numbers. Write a main function to add two complex
objects.
Using dynamic constructors, write a program
to concatenate two given strings.
M.Sc. Years Integrated) DEGREE EXAMINATION,
MAY 207.
C++.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. Write a menu driven program to add, subtract
two given matrices of order m n defined in class,
using operator overloading.
Create a class DONOR that contains donor number,
donor name, age, address, sex, blood group. Write a
program to print the number, name and
address of the donors for the following categories.
Blood donors having blood group
Blood donors in the age group between 20 to
30.
Female donors with blood group in the
age between 20 to 25.
Sub. Code
26
DE-9560
2
Ws7
2. Create a class which consist of EMPLOYEE details
like enumber, ename, department, basicpay, grade.
Write member functions to get and display them.
Derive a class PAY from the above class and write a
member function to calculate da, hra, pf depending
on the grade and display the payslip in a neat
format.
Write a program to find the difference and total
length of given two various tubes specified in meters
and centimeters using operator overloading.
3. Write a program to process students marks with the
help of classes. The class has private variables, for
name, mark1, mark2, mark3. It has two member
functions getdata to get input, result to print
the results. All subjects mark must be for
pass otherwise fail.
Write a program using polymorphism to
calculate the square of any two numbers of type int,
float, double and long.
4. Create a class employee that contains employee
number, employee name and address. Write a menu
driven program to get the details of number
of employees and display all details in employee
namewise sorted order.
Write a program to create a class STRING.
Write a member function to initialize, get and
display strings. Overload the operator to
concatenate two strings, to compare two
strings.
Cut here
Cut here
DE-9560
3
Ws7
5. Create a class called TIME that has integer data
elements for hours, minutes, seconds. The
constructors should initialize these data elements to
specified value, if given, and otherwise to 0. A
member function should display it in hh:mm:ss
format (eg. 11 50 45). The final member function
should add two objects of type TIME passed as
arguments.
Create a class ARITH which consists of a FLOAT
and INTEGER variable. Write member functions
ADD SUB MUL DIV MOD to
perform addition, subtraction, multiplication,
division and modulus division respectively. Write
member functions to get and display values.
6. Assume that you want to generate a table of
multiples of any given number. Write a
program that allows the user to enter the number
and then generates the table, formatting it into ten
columns and twenty lines.
Write a program to find the largest of three
numbers using inline function.
7. Write a program to create a class called
STUDENT with data members Regno, Name and
age using inheritance, create the classes
UGSTUDENT and PGSTUDENT having fields
semester, fees and stipend. Enter the data for
atleast 5 students. Find the average age for all UG
and PG students separately.
Write a program to implement function
overloading in order to compute power where
m is double and n is int
m and n are int.
Cut here
DE-9560
4
Ws7
8. Create a class 'COMPLEX' to hold a complex
number. Write a friend function to add two complex
numbers. Write a main function to add two complex
objects.
Using dynamic constructors, write a program
to concatenate two given strings.
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