Oops Assignment Eee
Oops Assignment Eee
Oops Assignment Eee
1b
2a
2b
3a
3b
4a
4b
5a
5b
6a
6b
7a
7b
Name
14BEE002
ABHINAYA
14BEE034
HARI N
14BEE044
KAVIYARASU P
14BEE045
KISHORE S
14BEE057
NANDHINI G
14BEE059
NISHASHREE R
14BEE027
DIVIN T D
14BEE028
DIVYA R
14BEE031
GOKUL KANNAN E
14BEE035
HARI PRASADH B
14BEE230
VIJAY PRADEEP.S
14BEE236
R.KAVIN
14BEE008
AJITH JAYASURYA S
14BEE013
ARAVINTHAN V
14BEE026
DINESHKARTHICK V
14BEE032
GOKULNATH M G
14BEE046
KOWSHIK P
14BEE229
ANAND.R
14BEE004
ABINAYA R
14BEE011
ANGEL PACKIYA A
14BEE025
DINESH.N
14BEE030
GOBINATH S
14BEE050
MADHAN M
14BEE238
A.S.MAILSAMY
14BEE006
AISHUWARREYA S
14BEE016
ATCHARAVATHY K
14BEE021
DEBBY GLADYS G
14BEE033
GOPINATH S
14BEE042
JEYAPRAKASH S
14BEE056
MUTHURAMALINGAM P
14BEE001
AARTHI SELVAKUMARI S
14BEE015
ARUNA T
14BEE020
CINDHU J
14BEE023
DHARANI SURYA S C
14BEE043
KATHEEJA YASMIN J
14BEE051
MANIKANDAN M
14BEE039
JAYAPRIYA J
14BEE047
KRISHNAGANTH R
14BEE048
LATCHAPRABHU P
14BEE226
BALA MURUGAN.P
4,5,6
7,8,9
10,11,12
13,14,15
16,17,18
19,20,21
22,23,24
25,26,27
28,29,30
31,32,33
34,35,36
37,38,39
40,41,42
8a
8b
9a
9b
10a
10b
11a
11b
12a
12b
14BEE231
RAGUBALAN.G
14BEE232
T.SUBASHCHANDRABOSH
14BEE005
ABINESH P
14BEE017
BALACHANDER T
14BEE018
BHARATHWAJ SR
14BEE019
BHUVANES M
14BEE024
DHINESH P
14BEE241
T.INDIRAPANDIYAN
14BEE003
ABINAVA B
14BEE053
14BEE055
MUNEESWARAN D
14BEE228
KISHORE KUMAR.R
14BEE235
D.AMUDHA
14BEE237
A.KARTHICK
14BEE009
AJJAY A
14BEE029
ELAVARASAN R
14BEE037
INDHUMATHI V
14BEE038
JANANI SRI S
14BEE052
MOHANRAJ N
14BEE054
MOTHISH RAJ J
14BEE012
ARAVINDH E D
14BEE036
ILAKGIYA SELVAN M B
14BEE040
JEEVANATH E
14BEE060
PANDIAMMAL R
14BEE233
T.SASIKUMAR
14BEE234
E.ANANDBABU
14BEE010
AKKILVIGNESH B
14BEE014
ARUN GANESH R
14BEE022
DEVIPRIYA S
14BEE041
JEEVARATHINAM R
14BEE049
LATHA S
14BEE058
NAVEENPRASATH A
43,44,45
46,47,48
49,50,51
52,53,54
55,56,57
58,59,60
61,62,63
64,65,66
67,68,69
70,71,72
10: 0
5: 1
1: 0
2. Define 2 classes Centigrade and Fahrenheit. Write a C++ program to convert centigrade
into Fahrenheit and vice versa. Formula :C=(F-32)/1.8
3. Create class rectangle and implement static data member and static member function.
Write a function to display
a. Number of live object
b. Display volume of the rectangle
c. Total number of rectangle object created.
4. Write a program which accepts a character and display its next character
5. Write a program that continues to ask the user to enter any decimal number and calculate
equivalent binary number
a)
b)
6. Design classes such that they support the following statements :Rupee r1, r2;
Dollar d1, d2
d1 = r2 (converts rupee to dollar)
r2 = d2 (converts dollar to rupee)
Write a complete program which does such conversion according the world market
values.
7. Write a program to check whether a triangle is valid or not, when the three angles of the
triangle are entered by the user. A triangle is valid if the sum of all the three angles is
equal to 180 degrees
8. An electricity board charges the following rates to domestic users to discourage large
consumption of energy:
a.
b.
c.
16. Write a program to calculate the monthly telephone bills as per the following rule:
Minimum Rs. 200 for up to 100 calls.
Plus Rs. 0.60 per call for next 50 calls.
Plus Rs. 0.50 per call for next 50 calls.
Plus Rs. 0.40 per call for any call beyond 200 calls.
17. Design and implement a SquareMatrix class. There should be appropriate constructors
and destructor. Also implement following operations appropriately with overloaded
operators: Addition and Subtraction of 2 Square Matrices.
18. Create a class called customer. Write a program to search and display the details of given
customer name. Try to modify the customer details.
19. Write a program to reveres any given integer number.
20. Consider a Bank Account class with Acc No. and balance as data members. Write a C++
program to implement the member functions get_Account_Details ( ) and
display_Account_Details (). Also count the number of accounts created using a static
member function.
21. Create class for student. Two child classes namely internal mark and external mark
derived from base class. The result class inherited from both mark class. Find and display
the result of the student.
22. Write a program to sum of digits of given integer number.
23. Write a C++ program to overload unary operator minus (-) using friend function.
24. Reeta called Rini and informed that he will be flying from Canada to Chennai. She will
be reaching there by 21:35 hrs and Rini noted that in 12 hrs format. Write a program to
convert from 24 hrs to 12 hrs. So there should be 2 classes one for 24 hrs and another for
12 hrs. Create objects for both the classes and use data conversion (class to class) method
to find 12 hrs format
25. Write a program to check given number is prime or not
26. Implement a class to represent fractions with numerator and denominator as integer , and
appropriate constructor and overload the + and operators to add and subtract two
fraction numbers respectively
27. Create a class DONOR that contains donor number, donor name, age address, sex, blood
group.
Write a Menu driven C++ program to display the number, name and address of the
donors for the following categories
(a) blood donors having the blood group O+
(b) blood donors in the age group between 16 to 25
(c) female donors having blood group A in the age between 19 and 24.
28. Write a program to calculate HCF of Two given number.
29. Define a class in C++ with following description:
Private Members
A data member Flight number of type integer
A data member Destination of type string
A data member Distance of type float
A data member Fuel of type float
A member function CALFUEL() to calculate the value of Fuel as per the following
criteria
Distance
Fuel
<=1000
500
1100
2200
Public Members
A function FEEDINFO() to allow user to enter values for Flight Number, Destination,
34. Write a program to enter the numbers till the user wants and at the end it should display
the maximum and minimum number entered
35. Define 2 classes Hour and Minute. Write a C++ program to convert hour to minute and
minute to hour.
36. Create a class called employee that contains a name and an employee number. Include a
member function called getdata ( ) to get data from the user, another function called
putdata ( ) to display the data. Write a main ( ) program to exercise this class. It should
create an array of type employee and then invite the user to input data for n employees.
37. Write a program to print out all Armstrong numbers between 1 and 500. If sum of cubes
of each digit of the number is equal to the number itself, then the number is called an
Armstrong number.
For example, 153 = ( 1 * 1 * 1 ) + ( 5 * 5 * 5 ) + ( 3 * 3 * 3 )
38. Define 2 classes Gallons and Litre. Write a C++ program to convert Gallons to Litre and
vice versa.(1 gallon = 3.78541 litre)
39. Create a class Employee that contains an employee number, employee name and address.
Write a Menu driven C++ program to get the n number of employee details and display
all details in employee name wise sorted order.
40. Write a program to print Fibonacci series of n terms where n is input by user: 0 1 1 2 3 5
8 13 24.....
41. Write the definition for a class called Rectangle that has floating point data members
length and width. The class has the following member functions:
void setlength (float) to set the length data member
void setwidth (float) to set the width data member
float perimeter () to calculate and return the perimeter of the rectangle
float area () to calculate and return the area of the rectangle
void show () to display the length and width of the rectangle
int sameArea (Rectangle) that has one parameter of type Rectangle. sameArea returns 1
if the two Rectangles have the same area and returns 0 if they don't.
1. Write the definitions for each of the above member functions.
2. Write main function to create two rectangle objects. Set the length and width of
the first rectangle to 5 and 2.5. Set the length
to 5 and 18.9. Display each rectangle and its area and perimeter.
3. Check whether the two Rectangles have the same area and print a message
indicating the result. Set the length and width of the first rectangle to 15 and 6.3.
Display each Rectangle and its area and perimeter again. Again, check whether
the two Rectangles have the same area and print a message indicating the result.
42. Model a toll booth with a class called toll booth. A constructor initializes the total no of
cars and total money collected. A member function called paying car () increments the
car total add cash. The function nopaycar () increments the car total. Finally a member
functions displays the total no of cars and cash. Write a program to implement the above
statements.
43. Write a C++ program to swap two numbers using call by value and call by reference.
44. Write a C++ program that can take either three integers or three floating point numbers
and outputs the smallest number using function overloading
45. Define a class to represent a bank account. Include the following members:
Data members: name, account no., balance
Member functions:
A)
To deposit an amount
B)
C)
D)
2. Write main function to create three time objects. Set the value in two objects and
calculate sum and assign it in third object. Display all time objects
51. Create a class Patient that stores the patient name (a string) and the disease (a string) of
the patient. From this class derive two classes: In_patient which has a data member room
rent (type float) and Out_patient which has a data member OPD_charges (float). Each of
these three classes should have a non default constructor and a putdata () function to
display its data. Write a main () program to test In_ patient and Out_patient classes by
creating instances of them and then displaying the data with putdata ().
52. Write a function that receives two numbers as an argument and display all prime numbers
between these two numbers. Call this function from main( )
53. Overload the insertion operator (<<) and extraction operator (>>) using friend functions
to input and output members of the Complex class.
54. Write a C++ program to create a super class Vehicle having members Company and
price. Derive 2 different classes LightMotorVehicle (members mileage) and
HeavyMotorVehicle (members capacity-in-tons). Accept the information for n vehicles
and display the information in appropriate form. While taking data, ask the user about the
type of vehicle first.
55. Write a C++ program to reverse the element of an integer 1-D array.
56. Write a C++ program to overload < and > operator in a String class to find if a string is
less than or greater than the other.
57. Define a class Employee having private members id, name, department, salary.
Define default and parameterized constructors. Create a subclass called Manager with
private member bonus. Define methods accept and display in both the classes. Create n
objects of the Manager class and display the details of the manager having the maximum
total salary (salary+bonus)
58. Write a C++ program to sort the elements of an integer 1-D array using bubble sort.
59. Overload the = operator using friend functions to copy objects of Distance Class
60. Create a super class, Student, and two subclasses, Undergrad and Grad.
The super class Student should have the following data members: name, ID, grade,
age, and address.
The super class, Student should have at least one method: int isPassed (double grade)
The purpose of the isPassed method is to take one parameter, grade (value between 0 and
100) and check whether the grade has passed the requirement for passing a course. In the
Student class this method should be empty.
The two subclasses, Grad and Undergrad, will inherit all data members of the Student
class. For the UnderGrad class, if the grade is above 70.0, then isPassed returns true,
otherwise it returns false. For the Grad class, if the grade is above 80.0, then isPassed
returns true, otherwise returns false.
Create a test class for your three classes. In the test class, create one Grad object and
one Undergrad object. For each object, provide a grade and display the results of the
isPassed method.
Integer
Sname
20 characters
Integers
Average
Float
Count
calcAvg( )
Takedata()
ShowData()
PrintNumberOfObjects()
66. Define a class Staff with members name, age and address.
Define 2 sub classes of this class FullTimeStaff (department, salary) and PartTimeStaff
(no_oh_hrs, rate_per_hr).Define appropriate constructors. Create n objects which could
name
20 characters
marks
average
CALCAVG()
Public members:
READINFO()
function CALCAVG ()
DISPLAYINFO ()
69. Design base class Customer (name, phone no).Derive a class Depositor (acc_no, balance)
from customer. Derive class Borrower (loan_no, loan_amt) from Depositor. Write
necessary member functions to read and display details of n customers.
70. Write a C++ program to print the following pattern
1
22
333
4444
55555
71. Define a class BOOK with the following specifications :
Private members of the class BOOK are
BOOK NO
integer type
BOOKTITLE
20 characters
PRICE
TOTAL_COST()
purchased. It invokes TOTAL_COST() and prints the total cost to be paid by the user
72. Overload the +,-,*,/ operators in the complex class to add, subtract, multiply and divide
two complex numbers using friend functions
Cover page
Bonafide certificate
Table of Contents
Statement of Contribution
Plagiarism Report
Problem Description
Program
Input & Output (Screen shot for all test cases)
References
Important dates
Sl.No
1.
Details
Date
Date:07/10/16
Time: Before 4.30 pm (sharp)
2.
Date:06/10/16
email id:[email protected]
Subject of the email- Batch No
followed by Assignment1
Eg : Batch 01-Assignment 1
3.
Date:15/10/16
4.
16/10/16
Note: Assignments marks will not be given, if assignments submitted on later dates
Criteria
The fabricated project should work (The data collected for the study project
is to be relevant)
2.
3.
4.
5.
6.
The student should have met the course teacher and regularly updated the
progress of the project
Marking for presentations
Sl.No.
Criteria
1.
2.
Marks for
assignments
No marks
01-02 mark
03-04 marks
not met
4.
05-06 marks
not met
5.
07-08 marks
not met
6.
09-10 marks