Create the Method in Adventurra Class - IT Assignment Help

Download Solution Order New Solution
Assignment Task:

Task:

Create the Method in Adventurra class as described below The signature for the method MUST be as follows (0 marks for this section if it is not) pnvate boolean batde(BattleReacty fighter 1 SanteReady hghter2) This method MUST use recursion (0 marks for this section if it is not) 
Each fighter (hunterl and lighter2) attacks in rums fighterl always attacks fist The amount of damage must be shown for each attack (rrickide the name of the fighter) And the health remaining must be shown after each attack (f the fighter does not fart) If the fighter does not have any health remaining then it most show that they tinted 
The fight continues until one fighter faints (both shook) not land) If figherl faints false is returned. else if fight& faints then true is returned. You are welcome to use either Indirect or Deed recursion (For indirect create two more methods and call from this method) There should be no more than 2 'fights' n the method) using deed, and no more than 1 in each method d usrig indirect 
4 2 Implement the Method in Adventure2 class as described below 
Write the singleBaille method such that if no hero exists the user is informed The monsters name and level is read from the user(range of level between 1-20, use readlnt created in assignment') The function should exit after 5 invalid entries (You do not have to validate the name, mg the level) Instantiate the monster using values entered 
Using your battle method. d the hems level is less than the monsters level then battle(hero, monster) 
else 
battle(monster. hero) Dont forget to store the result of the battle li the hero losses the battle. hero is set to null and the user is informed they will need a new hero 
Else the reward experence is given to the hero (use gay experience) and is shown on screen (show also if they levelled up) (You do not have to show the bonus experence) 
 

This  IT Assignment has been solved by our IT experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.