Question: PLS DO IT AS FAST AS YOU CAN.PLS USE JAVA CODE.Write a fight simulator. My attacker class initiates an attack(he have 3 attack types high/med/low)

PLS DO IT AS FAST AS YOU CAN.PLS USE JAVA CODE.Write a fight simulator. My attacker class initiates an attack(he have 3 attack types high/med/low) and my defender class(he have 3 defense types high/med/low) is supposed to block it if not defender is Hit. Manager is my main class have input 1 - 100 rounds ,also main class computes and prints the results.And also manager(main) class the user puts input to attacker with what percentage of attack should be high/medium/low(in sum 100% should be) (Check the example output in Photo below)

PLS DO IT AS FAST AS YOU CAN.PLS USE JAVA CODE.Write a

fight simulator. My attacker class initiates an attack(he have 3 attack types

PLS NOTIFY ME IF YOU STARTED DOING THE CODE.

Number of attack unds: 100 Enter percentages for the number of attacks that will be directed: low, medium, high. The total of the three percentages must sum to 100% Percentage of attacks that will be aimed low: 180 Percentage of attacks that will be aimed at medium height: @ Percentage of attacks that will be aimed high: 0 Kombat Begins! Round 1... Round 2... Round 3... Round 4... Round 5... Round 6... Attacker: Low Attacker: Low Attacker: Low Attacker: Low Attacker: Low Attacker: Low Defender: LOW Block Defender: High Hit Defender: Medium Hit Defender: Low Block Defender: High Hit Defender: High Hit Summary of kombat Total hits: 13 Total blocks: 87 Attacker proportions: Low 100.00% Defender proportions: Low 87.89% Medium: Medium: 0.00% 2.00% High: High: 0.00% 11.8% Number of attack unds: 100 Enter percentages for the number of attacks that will be directed: low, medium, high. The total of the three percentages must sum to 100% Percentage of attacks that will be aimed low: 180 Percentage of attacks that will be aimed at medium height: @ Percentage of attacks that will be aimed high: 0 Kombat Begins! Round 1... Round 2... Round 3... Round 4... Round 5... Round 6... Attacker: Low Attacker: Low Attacker: Low Attacker: Low Attacker: Low Attacker: Low Defender: LOW Block Defender: High Hit Defender: Medium Hit Defender: Low Block Defender: High Hit Defender: High Hit Summary of kombat Total hits: 13 Total blocks: 87 Attacker proportions: Low 100.00% Defender proportions: Low 87.89% Medium: Medium: 0.00% 2.00% High: High: 0.00% 11.8%

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!