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

I need some help figuring out how to begin this programming assignment. This is

ID: 657189 • Letter: I

Question

I need some help figuring out how to begin this programming assignment. This is introductory level Java programming and the goal is to write a program that simulates a "Pokemon" fight by rolling a die.

Any hints and information you can lend me would be appreciated!!!

https://wiki.ittc.ku.edu/ittc_wiki/index.php/EECS168:Homework4

Explanation / Answer

public class Pokemon{ private int health; private int strength; private int speed; /** * Constructs the pokemon * @Require: * health is an integer greater than or equal to 1 but less than or equal to 300 * strength is and integer greater than or equal to 1 but less than or equal to 300 * speed is an integer greater than or equal to 1 but less than or equal to 300 */ public Pokemon(int health, int strength, int speed){ assert health >= 1; assert health = 1; assert strength = 1; assert speed = 1 || pokemon2.health >= 1); if(pokemon1.health < 1) System.out.println(pokemon1 +" has lost the fight"); else System.out.println(pokemon2 +" has lost the fight"); } } public class PokemonTester{ private Pokemon charizard; private Pokemon blastoise; private Pokemon venusaur; public PokemonTester(){ charizard = new Pokemon(100,50,50); blastoise = new Pokemon(150,25,150); venusaur = new Pokemon(300,10,100); } public static void main(String[] args){ Pokemon.battle(charizard, blastoise); //will not compile } } class Die{ int dots,roll; Random number = new Random(); public Die(){ dots = number.nextInt(6)+1 ; } public void roll(){ roll = number.nextInt(dots)+1; } public int getDots(){ return roll; } } public class Uppg1 { public static void main (String args[]){ Die die = new Die(); die.roll(); System.out.println("Du " +die.getDots()); } }