Question: PP2: Divide & Conquer For this PP we will be separating our code out into functions. We will also be changing up two pieces of
PP2: Divide & Conquer For this PP we will be separating our code out into functions. We will also be changing up two pieces of functionality We wil be dividing up the code into the following functions (NOTE the declarations should be at the top of the and the dettons at the end) INOTEZ You must decideretumn types and parameters This function load the sonsters from the passed in file and returns the wctor. You'll need for 1000 1Monster 1 Almost copy paste fron 101 display Battle Damage dealt on attacks are based on a normal distribution with the mean being the object's strength and a standard deviation of 2 We are loading the monsters from a file. I have a monsters txt file that looks like this Almost copy and paste from conterattack: 2 Almost a copy and paste from DP olyttack()) returns de done wsing real distribution and the pain object's strength. I also out the obdecta song with deals attacker strength, stevi 2.0 COCK LE Dragon 5 50 Imp 1 Totes the defending object and then being done. subtracts the defroe the defenders not outputs agedanneto "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
