Add a new shape base class to the area calculation program


Assignment Overview

For this assignment, you will write a new version of the area calculation program from  the calculation you did for me 2 weeks ago that makes use of inheritance in C++. Add a new Shape base class to the area calculation program that includes data members common to all shapes (such as a shape ID, a shape type, and a unit of measure).

Part 1: Write the Application

Write a new version of the area calculation program from previous calculation assignment you done for me  that makes use of inheritance in C++.

  • Add a new Shape base class to the area calculation program that includes data members common to all shapes (such as a shape ID, a shape type, and a unit of measure).
  • The Shape base class should also include a virtual getArea() member function.
  • Revise the Circle and Square classes so that they inherit from the Shape base class.
  • Add a third shape to the program that also inherits from the Shape class.
  • The finished program should ask the user to enter the relevant information for each shape and then print the area and other information for each shape.

You will use the Code::Blocks software to write this application. Access this software via the Toolwire virtual desktop activity link in this unit. Be sure to organize the code correctly into header (.h) and implementation (.cpp) files. Your code should include meaningful comments and be correctly formatted.

Part 2: Describe the Application

Write a 3-5-page paper in which you complete the following:

  • Define and document the requirements for the calcMortgage application.
  • Describe the stakeholders needed to help further define the application.
  • Describe a collaboration plan for working with stakeholders.
  • Explain your object model and inheritance.
  • Explain how your application works and any issues you encountered with the application.
  • Include a screen shot of your application, using the Print Screen function, to show that your application works.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Add a new shape base class to the area calculation program
Reference No:- TGS01589035

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)