Em Andamento

Help with my C++ Homework! Polymorphism, EASY!!!

Design, code and execute modification to the shape inheritance hierarchy emphasizing the use of virtual functions. The shape hierarchy will keep the same constructors, overloaded insertion operators and member data as in the included program( see attached), and include the following modified methods.

## Deliverables

Design, code and execute modification to the shape inheritance hierarchy emphasizing the use of virtual functions. The shape hierarchy will keep the same constructors, overloaded insertion operators and member data as in the included program( see attached), and include the following modified methods.

**_BASE CLASS METHODS: SHAPE

_**A virtual function that calculates the area of a shape.

A virtual function that calculates the volume of a shape.

A **pure** virtual whoami function that prints ouf the name of the shape.

**_DERIVED CLASS METHODS: CIRCLE, SQUARE_**

Override the virtual area function to calculate the area of a circle or a square.

Override the virtual whoami function to print out the name Circle of the name Square.

**_DERIVED CLASS METHODS: CYLINDER, CUBE

_** Override the virtual area function to calculate the area of a cylinder or a cube

Override the vitual volume function fo calculate the volume of a cylinder or a cube.

Override the virtual whoami function to print out the name Cylinder or the name Cube.

**_PROGRAM:_**

Declare a vector of 10 pointers to base class Shape.

Use the new operator to fill the vector with addresses of derived objects , using the same constructors and data as in the included program.

Use the pointers in the vector and dynamic binding to print the name of each derived object; use the insertion operator and static binding to print out the data in each derived class.

Use the pointers in the vector and dynamic binding to calculate and print the area of each derived object and calculate and print the volume of each derived object.

**NOTES:**

The virtual area and volume functions in the base class should return a value of 0.0 since these calculations have no meaning for a single point in the Cartesian plane. The class interface will be in a header file, the class implementation and the code for the main program will be in two seperate .cpp files. These files will be linked together as one excecutable file and then run by the CPU.

I MUST BE GIVEN ALL SOURCE AND OUTPUT FILES

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Windows 95, 98, 2000, XP

Microsoft Visual C++

Habilidades: .NET, ASP, Montagem, Programação C, Programação C#, Cocoa, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, Visual Basic

Ver mais: virtual pointers, virtual functions cpp, virtual functions polymorphism, virtual constructors, vector member functions, vector cpp, program data vector, data cpp, cpp virtual functions, cpp vector, cpp polymorphism, cpp data, area point, design square, my c, area circle, program shape, work done easy, overloaded operator, windows homework, design using cpu, easy member, calculate volume point file, square point cube, asp form modification

Acerca do Empregador:
( 3 comentários ) United States

ID do Projeto: #3030802

Premiar a:

blacksmithstd

See private message.

$3 USD em 2 dias
(1 Comentário)
0.6

16 freelancers estão ofertando em média $36 para este trabalho

paveltisunov

See private message.

$21.25 USD in 2 dias
(83 Comentários)
6.7
bahe

See private message.

$8.5 USD in 2 dias
(146 Comentários)
6.5
leonidm

See private message.

$21.25 USD in 2 dias
(85 Comentários)
5.8
vadymvw

See private message.

$21.25 USD in 2 dias
(20 Comentários)
5.4
vw988650vw

See private message.

$7.65 USD in 2 dias
(33 Comentários)
5.2
senzaciosnegyes

See private message.

$17 USD in 2 dias
(104 Comentários)
4.9
Gr8Coders

See private message.

$15.3 USD in 2 dias
(52 Comentários)
4.9
saadrahmanvw

See private message.

$34 USD in 2 dias
(23 Comentários)
4.4
shashikhanvw

See private message.

$85 USD in 2 dias
(15 Comentários)
3.8
softbite

See private message.

$25.5 USD in 2 dias
(8 Comentários)
2.0
imeagle

See private message.

$6.8 USD in 2 dias
(5 Comentários)
2.9
baxsoft

See private message.

$8.5 USD in 2 dias
(3 Comentários)
0.5
softguruvw

See private message.

$68 USD in 2 dias
(0 Comentários)
0.0
szyslakvw

See private message.

$17 USD in 2 dias
(0 Comentários)
0.0
gustavovvw

See private message.

$212.5 USD in 2 dias
(0 Comentários)
0.0