Exp 10
Exp 10
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
Teacher's Signature.
. tincude ciestream
nanepace stdj
pivatt at,
double naal, iaay
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)
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