Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Level 4: Level 1 Battle Game Output must state You will open up a file that has the folowing format 1. 2. 3. Line i:
Level 4: Level 1 Battle Game Output must state You will open up a file that has the folowing format 1. 2. 3. Line i: Line 2: Line 3: A title line and underline The number of battles total. The number of EACH battle The strength of each player The winner ef each battle Each battle is separated by a blank line Final line of output MUST state end of battles 5. 6. 7. Output Example for example File Line n Battle Game There will be 2 lines for each battle played There can be up to 100 battles Each player has an army that consists of one of S characters and each has the following strength Total of 3 battles Battle 1, Player :Strength of 19 Battle 1, Playe2: Strength of 6 Battle 1 Winner Player i blank line here K-Knight Fe Foot soidier A - Artiliery T " Tanker S- Saiper Strength2 Strength Strength-4 Strength 5 Strength-3 Battle 2, PlaeStrength of 17 Battle 2, Playe2:Strength of 17 Battle 2 WinnerTIE BATTLE Battle 3. Player Strength of 19 Battle 3, Playe2 Strength of 30 Battle 3 Winner : Player 2 Each member of the army is separated with a space, number of army forces-6 characters ALWAYS (to make End of Battles things easier Read in each pair of lines for a battle, and then determine who is the winner, lplayer 1 or 2) or is it a tie Example Input File OUTPUT MUST BE EXACT! Indicates there are 3 battles/3 pairs if data lines KKASST (make using basic java, nothing advanced, no methods) AAASFF FATTFF ATSFKA TIILI NOTE: There will ALWAYS be 6 "characters in an army ALWAYS (to simplify the solut
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started