I want a complete solution for this program in C++ using object I want a complete solution for this program in C++ using

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I want a complete solution for this program in C++ using object I want a complete solution for this program in C++ using

Post by answerhappygod »

I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
I want a complete solution for this program in C++
using object
it, don't copy or write java code, just do what you
want or else don't
it, don't copy or write java code, just do
what you want or else don't
it, don't copy or write java code, just do what you
want or else don't
it, don't copy or write java code, just do
what you want or else don't
it, don't copy or write java code, just do
what you want or else don't
it, don't copy or write java code, just do
what you want or else don't
I Want A Complete Solution For This Program In C Using Object I Want A Complete Solution For This Program In C Using 1
I Want A Complete Solution For This Program In C Using Object I Want A Complete Solution For This Program In C Using 1 (67 KiB) Viewed 28 times
Description: Apply what you have learned in OOP, Inheritance, Polymorphism and Files 1/0 techniques to build the above shown Shape hierarchy. For all classes we need to store the following information: Shape Shape2D Shape 3D Circle Square Triangle Hexagon Sphere Cube Cylinder Cone 1. All classes must have a color and name attributes, both of a string type and stored in the base class (Shape). 2. All 2D shapes must have area and perimeter attributes, both of double type and stored in their base class (Sahpe2D). 3. All 3D shapes must have surface Area and volume attributes, both of double type and stored in their base class (Shape 3D) 4. readData(), print(), printToFile(ofstream &output), readFromFile(ifstream &input) functions must be implemented in all classes (base and derived), taking into consideration they will be used for polymorphism, 5. computeArea() and computePerimeter() functions must be implementer in all 2D shape classes (including their base class), taking into consideration their use in polymorphism, 6. computeSurfaceAreal) and computeVolume() functions must be implemented in all 3D shape classes (including their base class), taking into consideration their use in polymorphism,

7. For each of the derived classes, we need to store the information shown in the below table in double format: Class Circle Square Triangle Hexagon Sphere Cube Cylinder Cone Attributes radius side base, height side radius side radius, height radius, height 8. You need to find out the functions to compute area, perimeter, surfaceArea and volume attributes on your own. Requirements 1. For every class, you need to build a default/parametrized constructor, 2. The default constructors set the objects' data members to 1.0, 3. Parametrized constructors are used to set objects' data members using the values passed to the objects during instantiation, 4. readData() function is used to read all the object's data members from the user, 5. print() function is used to print all object's data to the screen, 6. Your program must be able to write all objects' data to the binary file "Shapes.dat", using the printToFile functions, 7. Your program should be able to read and append to the "Shapes.dat" file as needed, using the readFromFile functions, 8. Your main file must be able to store/retrieve data to/from output/input files depending on the user's choice, 9. It is not known how many objects will be added or their order of addition
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply