Create a vector of 2d and 3d geometric figures

Assignment Help C/C++ Programming
Reference no: EM131054119

Write a C++ program that allows the user to create a vector of 2D and 3D geometric figures then computes their areas and volumes if possible. Elements in your vectors are made of objects of each class that can be instantiated.

-Your 3D figures must be either a cylinder or a sphere or a cube. Each of These figures have a center which is identified by a point with 3 coordinates (x,y,z), and radius(for cylinder and sphere),and a height(for cylinder) and the length of a side(for cube). A 3D figure has a area and a volume.

-Your 2D figures must be either parallelogram or a rectangle, or a square, or a triangle or a trapezoid. They all can be represented by a point in the bottom left corner(coordinates x,y,z) and the appropriate dimensions needed for computation their areas. Example length and width for rectangle, base and height for triangle etc..

-Your program should establish inheritance relation between some figures. Example 2D and 3D figures are all geometric figures. A rectangle is a parallelogram. A square is a rectangle.

-You must also have virtual methods and abstract classes.

You must create 3 different files for this assignment:

(1) An interface file where all the classes and their appropriate methods are declared
(2) An implementation file where all the methods of the interface file are defined.
(3) A driver file or client program where a user can create a vector shapes then compute their area and volume if possible. For each shape, you must also point out their position in a 3D coordinate.

Detailed Question: In this homework, I am to use abstract class, virtual methods,, template, vector, inheritance.

Reference no: EM131054119

Questions Cloud

Write about your reaction and impression of watching movie : Either watch "Secret of nihm" or "Guardians of Galaxy" and then write about your reaction, thoughts, impression of watching the movie and your feedback. More than one page long (could be 1.5 page).
Differences between independent and dependent demand : 1. How can forecasting improve your operations and supply chain processes? 2. What are the differences between independent and dependent demand?
Explain scale and impact of financial crisis in economies : Discuss the possible causes of the financial crisis. Do you think GFC could be repeated again? Discuss -  identify some of proposed reforms.
Disability experience during the twentieth century : Answers must be typed and double-spaced in a standard 12-point font (e.g., Times or Times New Roman) with 1" margins. Your answers should draw on the course readings and discussions. You must cite all quotes and paraphrases from the readings (e.g...
Create a vector of 2d and 3d geometric figures : Write a C++ program that allows the user to create a vector of 2D and 3D geometric figures then computes their areas and volumes if possible
Maximum and minimum inventory levels : Describe how the inventory level of the buffer changes during a day. When do the maximum and minimum inventory levels occur during each day? What are the maximum and the minimum levels?
Compare vcsat to vp in defining the nonlinear region : Compare VCsat to VP in defining the nonlinear region
How horizontal gene transfer occur in bacteria : How horizontal gene transfer occur in bacteria? Your friend say "its impossible that human evolved because natural selection pressure". Give a statement that prove him wrong.
What is the dpmo value : A bank's savings account statements contain 24 items of account information. Last month, 2500 bank statements were checked and 52 errors were found in the account items. What is the dpmo value?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd