Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bu projede, C + + programlama dili kullan larak , karma k say lar uzay nda tan ml olan vekt r ve matris zerinde bir

Bu projede, C++ programlama dili kullanlarak, karmak saylar uzaynda tanml olan vektr
ve matris zerinde bir takm lineer cebir ilemleri gerekletiren snf ve metotlar
gereklemeniz ve main metodu ierisinde test etmeniz beklenmektedir.
Tanm: z = a + bi karmaslk saysnda a ya karmas1k saynn reel (gerel) ksm, b ye karma$$k
sayn imajiner (sanal) ksm denir ve Re(z)=a,Im(z)=b seklinde gsterilir.
Gerceklenmesi gereken snflar ve ilgili metotlar aada verilmitir:
"Imaginary" adnda,ye deikeni (nitelii) 'private' olan bir snf gerekleyin. Bu
snf karmak saylarn sanal (Imaginary) ksmn ifade edecektir.
Karmak saylar temsil etmek iin "Imaginary" snfndan trettiiniz (inheritance),
"Complex" adnda bir snf gerekleyin. Oye deikenleri, gerel "re" ve sanal "im", ve
kismlar "private" olmaldir.
a. Bu snf zerinde toplama (+),lkarma (-), blme (/),arpma (*), elenik(),
atama (=), toplama atama (+=),lkarma atama (-=),arpma atama (**=), blme atama
(/=) ve esit mi(==) gibi aritmetik ve lojik ilemler ar yklenecektir.
Complex saylar zerinde tanml, "Vector" ve "Matrix" adnda snflar gerekleyin.
"Vector" snfnn "size_t" tipinden "size" adnda ve "Complex" tipinden "element" adnda
zellikleri "private' olmaldr. "Matrix" snflara ait "size_t' tipinden "row", "col" ve
"Complex" tipinden "element" adnda nitelikleri 'private' olmaldr. Bu snflar zerinde
"Complex" snfndaki gibi aadaki operatrler ar yklenecektir:
a. "Matrix" snfnn, matrisin transpozunu hesaplayan "transpose" ve determinant
hesaplayan "determinant" metotlarn gerekleyin.
"Matrix" snfndan tretilecek "SquareMatrix", "IdentityMatrix" ve "TriangleMatrix"
snflarn gerekleyin.
Son olarak, "LinearAlgebra0bject" adnda soyut (abstract) snf gerekleyin. Bu snf,
lineer cebir nesnelerinin (rnein, Vector, Matrix, SquareMatrix, IdentityMatrix,
TriangleMatrix) ortak davranlarn tanmlamak iin kullanlacaktr.
Her snfa ait "print()", kurucu (constructor), kopyalama kurucularn(copy constructor) ve
gerekli tm metotlar gerektii kadar gereklenmelidir.
Tasarladnz snflarn testlerini "main" metodunda yapnz. Raporunuzda tasarlad1nz
snflarn Unified Modeling Language (UML) diyagramlarn ve gerekli tm aklamalarn
yaznz.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

For what value of c does f10 c/x3 dx = 1?

Answered: 1 week ago

Question

Where do your students find employment?

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago

Question

What does this key public know about this issue?

Answered: 1 week ago

Question

What is the nature and type of each key public?

Answered: 1 week ago

Question

What does this public need on this issue?

Answered: 1 week ago