Question
COSC 1336 Program 8 Page 1 of 5 Use the course material located at: o COSC 1336 Program 8 can be completed using content from
COSC 1336 Program 8 Page 1 of 5 Use the course material located at: o COSC 1336 Program 8 can be completed using content from the following chapters: o Welcome! through Classes & Objects Requirements (remember to identify the requirements by number): Create a file using PyCharm. Name the source file program_8.py. Format code like the examples. Include comments in your code like the examples. Code the requirements in the numbered list below. Output a header in the console: This is Program 8 COSC 1336 Program 8 Page 2 of 5 Requirements to be numbered in program_8.py: Write a program to keep track of data of Pokemon characters you have captured. Note: There is no data hard-coded in the program. All data is entered by the user. See the code example at the end of this document. Your program will have a class named Pokmon which will contain the following member data: self.__name self.__ability The Pokmon class will contain the following member methods: __init__ - constructor get_name returns self.__name get_ability returns self.__ability 1. Print This program keeps track of Pokemon characters. 2. 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. 3. Complete the display_pokemon() function. My version required six lines (including the def line) but you can use more. COSC 1336 Program 8 Page 3 of 5 COSC 1336 Program 8 Page 4 of 5 4. Produce output like that shown below (your version must include Requirement statements): COSC 1336 Program 8 Page 5 of 5 5. Print a statement explaining your experiences with Program 8. TEST TEST TEST your application to ensure the specific program requirements are met. Use the list above and the common requirements as a confirmation checklist. Not meeting all requirements = 0 points for the assignment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started