0% found this document useful (0 votes)
7 views10 pages

Exp 10

Uploaded by

Vandit Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views10 pages

Exp 10

Uploaded by

Vandit Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

vOUVA

ExrERIMENT (O
8.incude ciosttream
tinclde Lcstring>
cass Emplaye
int Emp-id
stiny Emp-Name
float'
publie i
Emg- salaryi
Emplage Cint
Empid=i
i, striny n, flast st
6str lEmp Nant, A
Emp-Salafy S
vaid disgla 0f
CsutccgTD: " c< Emp i
Gutcc"n Name ="2cEnp- Name
Caut ce"n Salarys cEmp. Sadary
int ain
Emplayee el(,T'Veer
Emplace e2(2 "Raju 2so oo );
t e " Details =\a
el. dis plaL

Teacher s Sgnature
rOUVA

2- indude ciostrean
wing ameace std
clas lomplex
Lpivate i
Aouble ral, imaginay

Imaginarye 0j
Conplex (dolle y, dodt i)E
3
onglex add Gmglex c, tonglex (2]4
Yes. yeal = cl.real t c2-Yeal;
Yeturn res;
Void showf
2

iat maia){
Comples cl(3.s,2s)
Gmplex c2ls, 4s),
Teacher's Signature
NAME

YOUVA

Cout c"Firs t ";


d.show0
Caut cc' Second: "
2.show)
Cout cL" Sum =\!
3.shew

Teacher's Signature.
. tincude ciestream
nanepace stdj
pivatt at,
double naal, iaay

Comples (it y, int iJ

Compler aperatort (Complex cf


Yey'eal

Yeturn resi
Noid slow

i t moin l)
Gmplex cl (3-S, 2s);
Compler c2 (1S, usJ
Tencher's Sinnatute
NAME
NC

Cout
cc"ficst
cl. shew0)
csut cc
= ";

c2.show0)
G Seconde ";
c3:showl

Teacher's Signature.
NAME

vOUVA

#incude Ciostream)
wsiyna mesface
class ectangte stdi
proteted:
dsuble leayth width j
Pectangle( dousle
lengthl;
l,double
double orea){
lass Box i
pisate publie etagle
public: doutle depthi
Bon Cdeuble Li da uble w,deutle d
eetargtt t,uti lengtht widthiwi
depth di
doutle areal
3 aepth leat ))
Teacher s Signature,
HAME

Caut cenctange
Cout cC Box

Teacher's Signature
YOUVA
Bete

Aincude Ciostream>
iny anespace std)
cass Employee
pretected
int idi
pudlicstig
Void getdata
Lout e" tD = "
(ioidj
Cout e"Name
getine leio, name)

Cout cName '<Cane cc endl

class Mansri publ'e Emplayee i


retected :
double saongi
pubic
vaid getdata ()
Cat e"salory
cins salagi
Teacher's Signature
MAME

Jeid display)l
cass Project
private
Aowol
it
public:
bid
e
Raary'
Mangri
ttai
qroj
public tuanyr t
esatary ccenolls

Ma
out erEetdaa)
cin>7totl En
Cout ccn No. pragct londlede
Cinsprej Hondled
void disploy
Caut<cotal eyperitaca "<totaul Expj

int mainU
fraiect Manar pi

Teacher's Signature
NAME
No

qdisplag

Tencher's Signatute

You might also like