This is C++ Homework for Object Modeling chapter. I need 1 header file (Avenger.h), 1 implement file (Avenger.cpp), and 1 main file (.cpp)connected to those. Spec: Here we have composition (object...

1 answer below »

This is C++ Homework for Object Modeling chapter. I need 1 header file (Avenger.h), 1 implement file (Avenger.cpp), and 1 main file (.cpp)connected to those.


Spec:


Here we have composition (object property) and association (pointer property) only, and fewer classes than the text assignment. No aggregation (owner of dynamic memory). Write a program for a super hero group. (Avengers, X-Men, X-Force, Justice League, Teen Titans, whatever.) The program needs to track basic information about each hero or villain. Height, weight, primary power, primary weakness, and primary enemy. You don't need to actually look these up - you can invent whatever data you want.


The program needs to be able to add a new hero to the super hero group and set any of those properties with proper public/private and get/set usage. I also want to keep track of everyone's costume; color and material are enough.



Use cases:


A use case is a description of a common user performing actions with a given goal. This helps you decide if your objects are sufficient. "Get money out of an ATM," "Grade an assignment," anything related to why you are writing the program.


I want to add a new member to the group. (Whether the group tracks member or the people track what group they are in is up to you. User doesn't care.)


I want to find the name of someone's enemy.


I want to have a bunch of heroes switch to using the same costume.



Your main:


Test everything you wrote. You don't test the use cases though. You just make sure they could happen if you were asked to do them later.


Grading Rubic:


Supe class with sufficient properties .it A "Supe" is a term for a hero or a villain since they all change sides all the time. Short for superhero, even if they are currently a villain. 4 pts


Some connection with a group. 3pts


Costume with properties. And hooked up wherever class is needed 3pts.

Answered 2 days AfterApr 23, 2021

Answer To: This is C++ Homework for Object Modeling chapter. I need 1 header file (Avenger.h), 1 implement file...

Tanishq Mahendra answered on Apr 26 2021
145 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here