Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. The aim of wrestling is to have two players snare each other in a described z

ID: 3741524 • Letter: 2

Question

2. The aim of wrestling is to have two players snare each other in a described zone, each trying to move their foe into point-scoring holds and hurls or a match-winning fall. At the Olympic level, freestyle wrestling matches consists of two three-minute periods, with a thirty second break between them. A match may bewon by: A fall By injury, withdrawal, default, disqualification of the opponent . By technical superiority By points In case of a tie by points the winner shall be declared by successively (in order) considering The highest value of holds (points). The lowest number of cautions. · The last technical points scored. If a wrestler receives three cautions during a match he/she is disqualified (EX). Classification points are also awarded to a wrestler to determine final ranking in a particular contest (with abbreviations). .5 points for the winner and O for the loser: Victory by fall (with or without technical points for the loser) (VT) Injury (VB) Withdrawal (VA) Default (Forfeit) (VF) Disqualification (competition or contest) (EV or EX) - .4 points for the winner and 0 for the loser(ST): Victory by technical superiority (10 points in freestyle during one of the two periods), with the loser scoring no technical points 4 points for the winner and 1 point for the loser (SP) Victory by technieal superiority during one of the two periods with loser scoring technical points. 3 points for the winner and O for the loser (pO): When the wrestler wins at the end of the two periods by 1 to 9 points in Freestyle with the loser scoring no point. - .3 points for the winner and 1 point for the loser (PP): When the bout ends by a victory by points at the end of the regular time and the loser scoring one or several technical points.

Explanation / Answer

As per the given data wrote a java program as shown in below

Java program

import java.util.Scanner;

public class main {

private static boolean playing = false;

private static int enemyHealth = 100;

private static int playerHealth = 100;

private static double enemyChoice = Math.ceil(Math.random() * 3);

private static String pName;

public static void checkHealth(){

if(enemyHealth <= 0){

System.out.println("Mother! "+pName+" wins!");

playing = false;

}else if(playerHealth <= 0){

System.out.println(pName+" has fallen! Rocky wins!");

playing = false;

}

}

public static void main(String[] args) {

Scanner user_input = new Scanner(System.in);

String wantPlay;

System.out.println("Want to play a fighting game?: ");

wantPlay = user_input.next();

if(wantPlay.equals("Yes") || wantPlay.equals("yes")){

System.out.println("What do you want your name to be?: ");

pName = user_input.next();

System.out.println("Hey folks!, were going to have an exiting game today!");

System.out.println("In the left corner, we have Rocky Balboa!!!!!");

System.out.println("and in the right corner, we have "+pName+"!!!!!");

System.out.println("");

playing = true;

}

while(playing == true){

System.out.println("Rocky has "+enemyHealth+" health remaining.");

System.out.println("You have "+playerHealth+" health remaining.");

String action;

System.out.println("What would you like to do? (a)upper cut (b)side punch (c)down cut: ");

action = user_input.next();

* a = 1 b = 2 c = 3*

enemyChoice = Math.ceil(Math.random() * 3);

checkHealth();

if(action.equals("a") && enemyChoice == 2){

checkHealth();

System.out.println("oohh! and "+pName+" throws a devistating blow into Rocky!");

enemyHealth-=10;

checkHealth();

}else if (action.equals("a") && enemyChoice == 3){

checkHealth();

System.out.println("OH! "+pName+" JUST GOT SMASHED!");

playerHealth -=10;

checkHealth();

}else if (action.equals("b") && enemyChoice == 3){

checkHealth();

System.out.println("Rocky just got smashed!!!!");

enemyHealth-=10;

checkHealth();

}else if (action.equals("b") && enemyChoice == 1){

checkHealth();

System.out.println(pName+" better step up his game!");

playerHealth-=10;

checkHealth();

}else if (action.equals("c") && enemyChoice == 1){

checkHealth();

System.out.println("Rockey just got pucnhed so hard that he might not even know he exists!");

enemyHealth-=10;

checkHealth();

}else if (action.equals("c") && enemyChoice == 2){

checkHealth();

System.out.println(pName+" Just got smashed!");

playerHealth -=10;

checkHealth();

}else if(action.equals("a") && enemyChoice == 1){

System.out.println("Their fists collided! this is intense!");

}else if(action.equals("b") && enemyChoice == 2){

System.out.println("Their fists collided! this is intense!");

}else if (action.equals("c") && enemyChoice == 3){

System.out.println("Their fists collided! this is intense!");

}

}

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote