Question: CS 5 2 : C + + Programming Project 2 : Superhero combat Due: 1 1 : 5 9 pm , 5 / 2 4
CS : C Programming
Project : Superhero combat
Due: : pm
Goal
Finishing the functionality introduced in Homework 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 all notes that apply to homework 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 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:
tableFGI,LNSFGFLFFGGI,GGSIFI,,LI,ILLGLLSNFGI,LSSFSI,SS
Power Definitions:
F: Flight
G: Gadgets
I: Intelligence
L: Lasers
: 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 for the functions in places like strlib.cpp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
