Onstructor & Destructors

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

onstructor & Destructors

Q.1 Write a c++ program to generate Fibonacci series 0,1,1,2,3,5,8…… upto


N terms. N must not be exceeding 20. Use a constructor to initialise data
members.

Q.2 Write a program to find the sum of odd and even numbers. Use
constructor to initialize data member and destructor to release memory.

Q.3 Define class outfit in C++ with the following descriptions:

Private Members:
OCode of type string
Otype of type string
OSize of type integer
Ofabric of type integer
Oprice of type float
A function InitPrice( ) which calculates and assigns the value of Oprice as
follows:
For the value of OFabric “DNIM”,
Otype Oprice (Rs)
Trouser 1300
Jacket 1400
For Ofabric other than “DNIM” the above mentioned
OPrice gets reduced 30%.
Public Members
A constructor to assign initial values of Ocode, Otype and Ofabric with the
word the “NOT ALLOWED” and Osize and Oprice with 0.
A function Input( ) to input the values of the data member Ocode, Otype ,
Osize and Ofabric and Invoke( ) the InitPrice( ) function.
A function Display( ) which displays the content of the all the data
members for an Outfit.

Question 4:
Write a C++ program to perform various operations on string class
without using language supported built in string function. The operation on
a class are:
i) Read a string
ii) Display the sting
iii) Reverse the string
iv) Copy the string into an empty string
v) Concatenate two string.
B.TECH. ADMISSION CALENDAR

December 14,
Date of Advertisement
2009

Date of Issuing the December 14,


Application Forms 2009

Last Date for Submitting the


February 20, 2010
Forms

VITEEE-2010 April 17, 2010

July 1st week,


Commencement of Classes
2010

VITEEE-2010 Application Form can be obtained


against cash payment of Rs.750/- from the various
Post Offices listed.

Candidates can obtain the application form in


person from the VIT University at Vellore (or)
from the Administrative Office, New No. 6, (Old
No. W-73), Second Street (Opposite Towers Club),
Anna Nagar, Chennai – 600 040 (Phone: 044-
42016555, 65480555, Fax: 044-26222555), by
handing over a Demand Draft for Rs.750/- drawn
in favour of “VIT University”, payable at Vellore.

Candidates can also obtain the application form


through post by sending a Demand Draft for
Rs.750/-drawn in favour of “VIT University”,
payable at Vellore, with a covering letter addressed
to “Admissions Officer”, VIT University,
Vellore- 632 014, requesting for the application
form and indicating their complete postal address.
On receipt of the DD, the application form with the
enclosures will be sent by post. The postal charges
will be borne by the Institute. Candidates should
write their name and address on the reverse of the
DD.

Further details contact,


DR. E. JAMES JEBASEELAN SAMUEL
Admissions Officer
VIT University
Vellore-632 014,
Tamil Nadu, India.
Phone: + 91-416-220 2125,
220 2157, 220 2168
Fax: +91-416-224 5544, 224 0411
Email: admission@vit.ac.in

VIT Engineering Entrance Examination (VITEEE - 2010)

• Applications will be issued from 14th December 2009 to 20th February 2010.

• Application Form and Information Brochure can be procured from the following Post
Offices against cash payment of Rs.750/- (Rupees Seven Fifty Only)

INDIA POST

State: Delhi
Sl. No. Name of the Post Office Status GPO/HO/SO Pincode

1 Ashok Vihar Head Post Office 110052


2 Delhi GPO 110006
3 Indraprastha Head Post Office 110002
4 Jhilmil Head Post Office 110095
5 Kalkaji Head Post Office 110019
6 Krishna Nagar (DLH) Head Post Office 110051
7 Lodhi Road Head Post Office 110003
8 Naraina Industrial Estate Head Post Office 110028
9 New Delhi GPO 110001
10 Ramesh Nagar Head Post Office 110015
11 Sansad Marg Head Post Office 110023
12 Sarojini Nagar Head Post Office 110023

You might also like