subject

Description For this assignment you will create a Pokedex program. Your program will read the data from a
provided file (pokedex. csv), and will as the user to input the number of two Pokemon. The program
will then tell which pokemon has an advantage in battle.
The advantage will be given in the pokedex. csv file. Don't worry about the .csv extension, all it is
is a text file formatted in a specific way.

Behind the scenes, all it is is a text file, in which each line has the data of a single pokemon. The
data for a single pokemon is then separated by commas (,). Here are the first few lines of the
pokedex (minus the first line):
1,Bulbasaur, Grass, Poison,45,49,49,45,1,2,0.5,0.5,0.25 ,2,0.5,1,1,2,2,1,1,1,1,0.5
2,Ivysaur, Grass, Poison,60,62,63,60,1,2,0.5,0.5,0.25 ,2,0.5,1,1,2,2,1,1,1,1,0.5
3,Venusaur, Grass, Poison,80,82,83,80,1,2,0.5,0.5,0.25 ,2,0.5,1,1,2,2,1,1,1,1,0.5
4,Charmander, Fire,,39,52,43,65,1,0.5,2,1,0.5,0.5 ,1,1,2,1,1,0.5,2,1,1,0.5
5,Charmeleon, Fire,,58,64,58,80,1,0.5,2,1,0.5,0.5 ,1,1,2,1,1,0.5,2,1,1,0.5
6,Charizard, Fire, Flying,78,84,78,100,1,0.5,2,2,0.25, 1,0.5,1,0,1,1,0.25,4,1,1,0.5
Notice that some Pokemons only have a single type, and therefore the column for type_2 is empty
(see Charmander for example). The first line contains the names of the attributes of the pokemon, it
is called the header, here is a description of each column:
• pokedex_number: The entry number of the Pokemon in the National Pokedex
• name: The English name of the Pokemon
• type_1: The Primary Type of the Pokemon
• type_2: The Secondary Type of the Pokemon if it has it• hp: The Base HP of the Pokemon
• attack: The Base Attack of the Pokemon
• defense: The Base Defense of the Pokemon
• speed: The Base Speed of the Pokemon
• against_normal: Denotes the multiplier applied when damage is taken from an attack of a
normal type pokemon
• against_fire: Denotes the multiplier applied when damage is taken from an attack of a fire
type pokemon
• against_water: Denotes the multiplier applied when damage is taken from an attack of a
water type pokemon
• against_electric: Denotes the multiplier applied when damage is taken from an attack of
an electric type pokemon
• against_grass: Denotes the multiplier applied when damage is taken from an attack of a
grass type pokemon
• against_ice: Denotes the multiplier applied when damage is taken from an attack of a ice
type pokemon
• against_fight: Denotes the multiplier applied when damage is taken from an attack of a
fighting type pokemon
• against_poison: Denotes the multiplier applied when damage is taken from an attack of a
poison type pokemon
• against_ground: Denotes the multiplier applied when damage is taken from an attack of a
ground type pokemon
• against_flying: Denotes the multiplier applied when damage is taken from an attack of a
flying type pokemon
• against_psychic: Denotes the multiplier applied when damage is taken from an attack of a
psychic type pokemon
• against_bug: Denotes the multiplier applied when damage is taken from an attack of a bug
type pokemon
• against_rock: Denotes the multiplier applied when damage is taken from an attack of a rock
type pokemon
• against_ghost: Denotes the multiplier applied when damage is taken from an attack of a
ghost type pokemon
• against_dragon: Denotes the multiplier applied when damage is taken from an attack of a
dragon type pokemon
• against_fairy: Denotes the multiplier applied when damage is taken from an attack of a
fairy type pokemon
This dataset is adapted from a more comprehensive one found at: https://www. kaggle. com
/mariotormo/complete-pokemon-datase t-updated-090420 The file format .csv stands for Comma
Separated Values, you can learn more about it here: https://en. wikipedia. org/wiki/Comma-
separated_valuesRequirements
• Your program must have at least 3 different classes designed and implemented by yourself:
Pokemon and Pokedex, and Main
• The class Pokemon should be used to represent a single pokemon
• The Pokedex class must implement the public Pokemon typeAdvantageCheck(Pokemon
p1, Pokemon p2); method, that returns the pokemon that has the advantage against the
other.
• The Main class is where the public static void main(String[] args) {} method is
located, where you will implement the main logic of your program
• At least one of the classes (Pokemon or Pokedex) must throw an exceprion (can be a custom
made exception or a ready-to-use provided by Java)
• Your program must use the try/catch block at least once
• Your submission will be a compressed file containing all the .java source files (do not include
.class files or the dataset)
• Your program must compile!
Hints
• Investigate the most suitable way to read the contents from the dataset (official
documentation, FileReader and the class material are a good start)
Example run
Enter the first pokemon number (1-151): 4
You chose Charmander.
Enter the second pokemon number (1-151): 7
You chose Squirtle.
Squirtle has the type advantage over Charmander in a battle!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
You know the right answer?
Description For this assignment you will create a Pokedex program. Your program will read the data...
Questions
question
Mathematics, 15.07.2020 14:01
question
Mathematics, 15.07.2020 14:01
question
Physics, 15.07.2020 14:01
Questions on the website: 13722360