Question: CS 5 2 : C + + Programming Project 2 : Superhero combat Due: 1 1 : 5 9 pm , 5 / 2 4

CS 52: C++ Programming
Project 2: Superhero combat
Due: 11:59 pm,5/24/2024
Goal
Finishing the functionality introduced in Homework 2, you'll implement fights that can occur between Hero objects. There won't be any functionality removed - only added.
Setup
The GitHub classroom link is posted on Canvas.
Be sure to follow the setup guide on Canvas.
You should read this writeup in its entirety before writing any code. There is more direction in this write up than there will be for later assignments.
Because this assignment adds onto homework 2, all notes that apply to homework 2 apply to this homework.
This assignment introduces a new pair of files: powers.h and powers.cpp. These files will contain several class definitions.
While this assignment has a "heroes.txt" file, we will not be testing with this file. Make sure your code can handle a different input file.
Your program will interact with the user to allow 2 heroes to fight against each other. Once heroes are selected, a random power from each hero will be selected and the results of the two powers fighting will determine who wins each round.
The winner of each round is determined by this grid:
\table[[,F,G,I,L,N,S],[F,,G,F,L,F,F],[G,G,,I,G,G,S],[I,F,I,,L,I,I],[L,L,G,L,,L,S],[N,F,G,I,L,,S],[S,F,S,I,S,S,]]
Power Definitions:
F: Flight
G: Gadgets
I: Intelligence
L: Lasers
N: Nationalism
S: Strength
All functions you're to complete are currently stubs - they have just enough code for the program to compile and run - though the results aren't correct. Several places there are TODO comments - this is where we recommend you fill in your code. We recommend that you fill in the functions in the order below.
While all of the .cpp files are stubbed out, you should use your code from homework 3 for the functions in places like strlib.cpp.
 CS 52: C++ Programming Project 2: Superhero combat Due: 11:59 pm,5/24/2024

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!