OOPAssi
gnment
[Link]
it
eaC++pr
ogr
am wi
thcl
asst
ofi
ndwhet
heragi
vennumberi
spr
imeornot
.
[Link]
it
eaC++pr
ogr
am t
oent
eranynumberandf
indi
tsf
act
ori
alusi
ngconst
ruct
or.
[Link]
teaC++pr
ogr
am t
oswapt
wonumber
sdecl
aredi
ntwodi
ff
erentcl
assesusi
ngf
ri
end
f
uncti
on.
[Link]
teaC++progr
am forcal
cul
ati
ngt
hear
eaoft
ri
angl
e,ci
rcl
eandr
ect
angl
eusi
ngt
heconcept
off
unct
ionov
erl
oadi
ng.
[Link]
te a C++ pr
ogr
am t
o per
for
m addi
ti
on oft
wo compl
ex number
s usi
ng const
ruct
or
ov
erl
oadi
ng.
[Link]
eaclassst
udentwhi
chhasdatamembersasname,semester
,rol
lno,secti
on,marksi
n
fi
vesubj
ect
[Link]
teaC++progr
am t
odispl
ayi
nfor
mat
ionoft
hestudentswit
htotalmarks.
7.I
mplementacl
assstr
ingcontainingthef
ollowingfuncti
ons:
(i
) Ov er
loadt
he‘+’operatortocar
ryoutt heconcatenat
ionofst
ri
ngs.
(i
i) Ov er
load‘
=’operat
ortocopyst r
ing.
Thenwri
teacompleteC++pr ogram t
odi spl
aystri
ngs.
[Link]
te a C++ pr
ogram tof i
nd the squar
e and cube ofa numberr
ead f
rom key
boar
d.
(
Demonstrat
etheconceptofi
nher
itance)
[Link]
it
eaC++pr
ogr
am t
oreadasetofl
inesf
rom t
hekey
boar
dandst
orei
tinaspeci
fi
cfi
le.
10.
Wri
teaC++pr
ogr
am t
oappendt
hecont
ent
sofaf
il
eint
oanot
her
.