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

  Write a program that will read in 2 test score.

Write a program that will read in 2 test score. The instructor has decided to give each student 10 bonus point on each test. Print out each test score and the total after the bonus, the print the total number of points earned on the tests.

  Print the value that is the deepest in the tree.

Write a C++ program to read in a set of numbers from an input file and build an ordered binary tree.

  Program that would display a letter to a friend

Writing a c++ program that would display a letter to a friend? It should have a proper format like name, friends name, address.....etc

  Program reads a number and prints all of its binary digit

Write a program that reads a number and prints all of its binary digits. Print the remainder number % 2, thenreplace the number with number / 2. Keep going until the number is 0.

  Feature of object-oriented programming

Describe at least one (1) feature of object-oriented programming that Visual Logic lacks and Identify at least one (1) advantage to using event-driven programming, as compared to using purely procedural programming

  As more and more mobile and handheld devices

As more and more mobile and handheld devices become prolific in everyday life, many applications have been ported from a traditional PC environment to the mobile devices. Mobile devices tend to have proprietary platforms with their own unique operati..

  Write a function named digit_name

Write a function named "digit_name" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.

  Calculate the weekly salary of a worker

Write a program to calculate the weekly salary of a worker. Ask the user for the pay per hour for weekdays, and pay per hour on weekends. Then ask user for number of hours worked for each day of the week (i.e. Mon, Tue, … Sun).

  Write a program that draws a picture of a house

Write a program that draws a picture of a house. It could be as easy as the accompanying figure, or if you like, make it more elaborate (3-D, skyscraper, marble columns in the entryway, whatever).

  Develop a program for an auto dealership

You are to develop a program for an auto dealership. This program will keep track of the auto inventory using an array of objects. The dealer has a limit of 100 cars in inventory at one time due to space restrictions. The class used to instantiate..

  1 what is the output of the following c programsnbspinclude

1. what is the output of the following c programs?nbspinclude ltiostreamgtusing namespace stdint mainnbspnbspnbsp cout

  What are the different structured loops

Which piece of pseudocode represent the checking the loop condition

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