Sunteți pe pagina 1din 13

U14CST901 OBJECT ORIENTED PROGRAMMING USING C++

MINI PROJECT QUESTIONS


Batch
No.
1a

1b

2a

2b

3a

3b

4a

4b

5a

5b

6a

6b

7a
7b

Students in the batch


Roll No.

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

Mini Project Question


(list attached below)
1,2,3

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

MOTHI ANAND RAJ S

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

List of Mini Project Questions


1. Write a program which accepts amount as integer and display total number of Notes of
Rs. 500, 100, 50, 20, 10, 5 and 1.
For example, when user enter a number, 575,
the results would be like this...
500: 1
100: 0
50: 1
20: 1

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)

Data conversion from decimal to binary

b)

Data conversion from binary to decimal

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.

First 100 units - 10 paise per unit

b.

next 200 units - 20 paisa per unit

c.

beyond 300 units - 30 paisa per unit

Calculate and produce electricity bill for customer.


9. Write a C++ program to demonstrate the concept of function overloading for the
following
a. To swap two integers
b. To swap two floating point numbers
c. To swap two characters

d. To swap two strings


10. Any year is input by the user. Write a program to determine whether the year is a leap
year or not
11. Write a Program for Operator Overloading. Program should overload the following
operators in distance class.
Insertion operator, extraction operator and equal to operator
12. Define 2 classes kilometre and Miles. Write a C++ program to convert Kilometre to
Miles and Miles to Kilometre. 1 Kilometre = 0.621371192 Mile
13. Write a program to find the roots of and quadratic equation of type ax2+bx+c where a is
not equal to zero
14. Write a C++ program to find the smallest of 3 integers and 3 floating numbers using
function overloading.
15. Implement the following diagram using inheritance.

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

more than 1000 and <=2000

1100

more than 2000

2200

Public Members
A function FEEDINFO() to allow user to enter values for Flight Number, Destination,

Distance & call function CALFUEL() to calculate the quantity of Fuel


A function SHOWINFO() to allow user to view the content of all the data members
30. Assume 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 20 lines.
31. Write a program to enter the numbers till the user wants and at the end it should display
the count of positive, negative and zeros entered.
32. Overload the < operator in the Distance class to find if a given distance is less than the
other.
33. Create a class called Employee that contains Employee number, employee name,
designation, basic pay, deductions (LIC, PF). Include a member function to get data from
user for n employees. Write a C++ program to prepare the payslips for n number of
employees using the following details :
D.A = 40% of basic pay
H.R.A = 25% of basic pay
Gpay = basic pay + D.A. + H.R.A.
Npay = Gpay deductions
The result of problems is in given format :
Emp. no Emp. name Basic D.A. H.R.A. L.I.C. P.F. Gpay Npay

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

and width of the second rectangle

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)

To withdraw an amount after checking the balance

C)

To display the name and balance

D)

Constructor and destructor

46. Write a program to print the following pattern


*
**
***
****
*****
47. Write the definition for a class called Distance that has data member feet as integer and
inches as float. The class has the following member functions:
void set (int, float) to give value to object
void disp () to display distance in feet and inches
overload the + operator using friend functions to add two distances & return distance
1. Write the definitions for each of the above member functions.
2. Write main function to create three Distance objects. Set the value in two objects and
calculate sum and assign it in third object. Display all distances
48. Write a program having a base class Student with data member roll no and member
functions getnum () to input roll no and putnum () to display roll no. A class Test is
derived from class Student with data member marks and member functions getmarks () to
input marks and putmarks () to display marks. Class Sports is also derived from class
Student with data member score and member functions getscore () to input score and
putscore () to display score. The class Result is inherited from two base classes, class
Test and class Sports with data member total and a member function display() to display
roll no, marks, score and the total(marks + score)
49. Write a C++ program to implement the Number Guessing Game. In this game the
computer chooses a random number between 1 and 100, and the player tries to guess the
number in as few attempts as possible. Each time the player enters a guess, the computer
tells him whether the guess is too high, too low, or right. Once the player guesses the
number, the game is over.
50. Write the definition for a class called time that has hours and minutes as integer. The
class has the following member functions:
void settime (int, int) to set the specified value in object
void showtime () to display time object
overload the + operator to add two time object & return time
1. Write the definitions for each of the above member functions.

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.

61. Write a C++ program to multiply two 3*3 matrices.


62. Overload the postfix - - and prefix - - operator.
63. Create a class telephone containing name, telephone no and city and write member
functions for the following(Use function overloading)
a. Search telephone number with a given name.
b. Search name with given telephone number
c. Search all customers in a given city
64. Write a C++ program to find if a given string is palindrome or not without using built in
functions
65. Define a class student with the following specification
Admno

Integer

Sname

20 characters

Marks in English, science, maths

Integers

Average

Float

Count

To count the number of Student objects

calcAvg( )

A function to calculate average of English ,science


and maths marks and returns average as a float value

Takedata()

A function to accept values for admno, Sname, Marks


in all 3 subjects

ShowData()

A function to display all the data members on screen

PrintNumberOfObjects()

To print the number of student objects created

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

be either FullTimeStaff or PartTimeStaff class by asking users choice. Display details of


all FullTimeStaff and PartTimeStaff.
67. Write a C++ program to find if a given number is palindrome or not.
68. Define a class REPORT with the following specification:
Private members :
adno

4 digit admission number

name

20 characters

marks

an array of 5 floating point values

average

average marks obtained

CALCAVG()

a function to compute the average obtained in five subject

Public members:
READINFO()

function to accept values for adno, name, marks. Invoke the

function CALCAVG ()
DISPLAYINFO ()

function to display all data members of report on the screen.

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

float (price per copy)

TOTAL_COST()

A function to calculate the total cost for N number of copies where

N is passed to the function as argument.


Public members of the class BOOK are
INPUT ()
PURCHASE ()

function to read BOOK_NO. BOOKTITLE, PRICE


function to ask the user to input the number of copies to be

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

Format of the Report


1.
2.
3.
4.
5.
6.
7.
8.
9.

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

Last date / time for submission of assignments

Date
Date:07/10/16
Time: Before 4.30 pm (sharp)

2.

Date on or before which the electronic format

Date:06/10/16

(Only electronic format is accepted) of the


assignment should reach the specified email id

email id:karthika.vt.cse@kct.ac.in
Subject of the email- Batch No
followed by Assignment1
Eg : Batch 01-Assignment 1

3.

Date of announcement of results on the notice

Date:15/10/16

board and sent to your group email on or before


Group email id:
kcteeea2014@googlegroups.com

4.

Dates for Appeal/challenge (on or before)

16/10/16

Note: Assignments marks will not be given, if assignments submitted on later dates

Rubrics: Mini project


Note: After submitting the project in time the following criteria will be used to evaluate.
Sl.No
1.

Criteria
The fabricated project should work (The data collected for the study project
is to be relevant)

2.

The project report is as per format

3.

Clear explanation is given by the student on their contribution in the project

4.

Student is able to explain the project clearly

5.

The student answered all questions put up related to the project

6.

The student should have met the course teacher and regularly updated the
progress of the project
Marking for presentations

Sl.No.

Criteria

1.

Mini project not submitted in time or purchased project

2.

Assignment submitted in time, presented and 04 or

Marks for
assignments
No marks
01-02 mark

more criteria not met


3.

Assignment submitted in time, presented and 03 criteria

03-04 marks

not met
4.

Assignment submitted in time, presented and 02 criteria

05-06 marks

not met
5.

Assignment submitted in time, presented and 01 criteria

07-08 marks

not met
6.

Mini project submitted in time, presented and all criteria


met

09-10 marks

S-ar putea să vă placă și