Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

bulbasaur,grass,South America ivysaur,grass,Asia, Antarctica venusaur,grass,Africa, South America charmander, fire,North America,Oceania charmeleon, fire, South America charizard,fire, Oceania squirtle,water,Oceania wartortle,water,Antarctica blastoise,water,Africa, South America caterpie,bug,0ceania metapod, bug, Asia,Africa,

image text in transcribedimage text in transcribedimage text in transcribed

bulbasaur,grass,South America ivysaur,grass,Asia, Antarctica venusaur,grass,Africa, South America charmander, fire,North America,Oceania charmeleon, fire, South America charizard,fire, Oceania squirtle,water,Oceania wartortle,water,Antarctica blastoise,water,Africa, South America caterpie,bug,0ceania metapod, bug, Asia,Africa, Europe, South America butterfree,bug, Antarctica,0ceania,South America weedle, bug, Europe, South America,Asia kakuna, bug, South America,0ceania,Africa,North America beedrill, bug,North America,Asia, 0ceania,Antarctica pidgey, flying, Antarctica, Europe,Oceania,South America pidgeotto,flying, Europe,Asia pidgeot, flying, Europe,Oceania,Asia rattata, normal,South America, Europe, Antarctica raticate, normal,0ceania spearow, flying, South America,North America, Antarctica, Europe fearow, flying, Asia,Antarctica ekans, poison, Europe, 0ceania,North America,Asia arbok, poison, South America pikachu,electric,North America,Oceania,Africa raichu,electric,North America sandshrew,ground,Asia,North America, South America sandslash,ground,Asia,South America,North America nidoranfemale, poison, Asia nidorina,poison,Africa, Europe, South America,Antarctica nidoqueen,poison,Africa, South America nidoranmale,poison,Asia,Africa, South America,North America nidorino,poison, Antarctica Overview Pokemon are fantastic creatures that people can catch and train. Pokemon are classified into different 'types such as grass, fire or electric. To catch different types of pokemon, you might have to travel all over the world For this assignment, you will build a program that will help organize information about where to go to catch the different pokemon. Thisassignment is divided into 5 different'questions: but in the end. your work from all of the questions will be combined to complete the overall program. The first four questions will each ask you to define a function that will perform a specific task Make sure that the inputs (parameters) and outputs (return values) of your functions match the problem description exactly. or else the whole thing wont fit together properly! The following is a brief overview of how the questions for this assignment will fit together Question 1 Read data about the pokemon from a text file and organize it as a database. You must fully complete this question before moving on. All of the other questions will depend on the database that you create here Question 2: Build a list of all the unique continents where you can find pokemon Question 3: Build a list of all the pokemon that can be found on a particular continent Question 4: Count how many of each pokemon type occur within a given list of pokemon names. Question 5: For each continent, display the pokemon type counts Individually.none ofthese questions are particularly difficult, but if you make a mistake anywhere along the way. then the last partwont work. Make sure toperform simpletesting, such as printing out lists or dictionaries. as you go to make sure that everything looks right One last note of caution: we have given you an input file for this assignment, but be aware that we might test yourprogram on a differentinput file. Therefore. youmust make sureyourcode is fully general dont count on knowing exactly how many pokemon there are, or on knowing exactly what the names of the pokemon types or locations might be. Question 5 (5 points): Purpose: To practice solving a problem by calling multiple functions to practice passing data results be- tween functions Degree of Difficulty: Easy if you did everything right so far Now it's time to put all your functions together to print out a summary report of how many and what types of pokemon you can find on each continent In the main part of your program, write code that will print to the console the name of each continent, the TOTAL number of different pokemon that can be found on that continent, followed by the counts for each pokemon type on that continent For example, the format for your output might look something like this Africa: 48 total pokemon 'ground': 3, 'fire': 1, 'fairy: 1, 'vater':9, 'ghost': 2, 'fighting': 4, flying':3, 'dragon': 1, electric': 2, 'grass':2, normal': 4, poison': 6, 'psychic':3, 'rock': 4, 'bug':3 South America: 55 total pokemon 'ground':5, ire': 2, 'ater':10, fighting':2, lying': 4, dragon' 1. 'lectric' 5, 'grass: 4, 'normal':3, poison':8, 'bug': 6, 'rock': 2, 'psychic':3) There will be more continents, but we're only showing two here to save space. To do this, you will need to make use of all of the functions you have written so far and make good use of their inputs and outputs. If youve done everything correctly. this part of your program won't require a lot of code: just a few function calls and a single for-loop should be enough

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

ISBN: 1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

Relational Contexts in Organizations

Answered: 1 week ago