Question: Hello, I need some help here asap please !!!!!! Ask me any questions you have please So here is what i need. This program 8

Hello, I need some help here asap please !!!!!! Ask me any questions you have please

So here is what i need. This program 8 bellow is completed, but the professor has sent us some new requirments and he wants as to do the new requirments in addition to whatever is in this progam 8 so that way it is now considered program 9. My problem is that: I dont know how to complete these requirements and more importantly, I dont know where to put the requirements and where to code them.

So, these bellow are the numbered requirements that he wants us to do:

Start with the program you produced for Program 8. In addition to all of the requirements for Program 8, do the following:

1. Print This program keeps track of Pokmon characters, saves the data to a file, and displays the data from a file.

2. Call the function save_data() to save the Pokmon data to a file.

3. Call the function display_data() read the data from a file and display the output just like requirement #4 in Program 8.

4. Print a statement explaining your experiences with Program 9

And, below is the program 8 which is finished, so the above requirementswill be coded in addition to whatever is bellow.

Also, can you please number the requirements just like I did in program 8 bellow which is the most important thing because that is how he knows where each requirement start.For example, if you add requirement 2 to program 8, then put something like:print(' Requirement 2') and thn continue the process.

copyable code

print(' This is program 8 ')

#This program keep track of pokeman data that has been captured by user print(' Requirement 1') print(' This program keeps track of Pokemon characters.')

#The programmer completes the rest of pokeman class by adding definitions and etc print(' Requirment 2') print(' Most of the Pokmon class is provided. Complete the missing parts of the' 'Pokmon class. For instance, add lines 6, 7, and the definitions for the' 'get_name() and get_ability() methods.')

class Pokemon:

def __init__(self, name, ability): self.__name = name self.__ability = ability

def get_name(self): return self.__name # returning property __name

def get_ability(self): return self.__ability # returning property __ability

def main(): print(' ########## In main() #############') pokemon_list = add_pokemon() display_pokemon(pokemon_list) print(' Process ended with exit code 0.')

def add_pokemon(): print(' In add_pokemon()') pokemon_list = [] pokemon_number = 1 more_pokemon = input(' Do you have a pokemon to enter? (y/n) ').lower() while more_pokemon == 'y': pokemon_name = input(' Enter name for pokemon #{}: '.format(pokemon_number)) pokemon_ability = input(' Enter ability for pokemon #{}: '.format(pokemon_number)) new_pokemon = Pokemon(pokemon_name, pokemon_ability) # creating Pokemon object pokemon_list.append(new_pokemon) # adding to list pokemon_number += 1 more_pokemon = input(' Another pokemon to enter? (y/n) ').lower() return pokemon_list

#The programmer then completes the display_pokeman which will show how the output looks print(' Requirement 3') print(' Complete the display_pokemon() function. My version required six lines' '(including the def line) but you can use more.') def display_pokemon(pokemon_list): #In this one, the output of program is shown as the teacher asks print(' Requirment 4 ') print(' Produce output like that shown below (your version must include' 'Requirement statements):') print(' ########## In main() #############') print(' In add_pokemon()') for item in range(0, len(pokemon_list)): # range will return list from 0 to length- 1 print(' Name of pokemon #{}: '.format(item + 1), pokemon_list[item].get_name()) print(' Ability of pokemon #{}: '.format(item + 1), pokemon_list[item].get_ability())

if __name__ == '__main__': main() else: pass #In this last reqquirement, thr programmer explains their experience with program print(' Requirement 5') print(' This was way easier than program 7 :) ')

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!