0% found this document useful (0 votes)
3 views2 pages

OOP Assignment

The document outlines a series of C++ programming assignments that cover various concepts such as class creation, operator overloading, and file handling. Each task requires the implementation of specific functionalities, including determining prime numbers, calculating areas, and managing student data. The assignments aim to enhance understanding of object-oriented programming principles in C++.

Uploaded by

dipufaisal
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)
3 views2 pages

OOP Assignment

The document outlines a series of C++ programming assignments that cover various concepts such as class creation, operator overloading, and file handling. Each task requires the implementation of specific functionalities, including determining prime numbers, calculating areas, and managing student data. The assignments aim to enhance understanding of object-oriented programming principles in C++.

Uploaded by

dipufaisal
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

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
.

You might also like