subject

When starting the program, the user will provide one command line argument. The command line argument will be the name of the file that contains the information about Pokemon. If the user does not provide the name of an existing file the program should print out an error message and quit. Searching and Printing:
Once the program begins, the user should be prompted with a list of different ways to display the Pokedex information. After the user has chosen an option, they should be asked if they want the information printed to the screen or written to a file. If they choose to write to a file, they should be prompted for a file name. If the file name already exists, the information should be appended to the file. If the file name does not exist, a file should be created and the information should be written to the file.
Available Options:
Search by dex number: If the user picks this option the program must search through the available Pokemon for one that matches a user entered number. Once found, it should print/write to file that Pokemon's data. If there is no matching Pokemon, the program must print an error message and give them all of the options again.
Search by name: If the user picks this option the program must search through the available Pokemon for one that matches a user entered name. Once found, it should print/write to file that Pokemon's data. If there is no matching Pokemon, the program must print an error message and give them all of the options again.
Search by type: If the user picks this option the program must search through the available Pokemon for ones that match a user entered type. Once found, it should print/write to file all of the Pokemon that have that type. If there is no Pokemon with the requested type, the program must print an error message and give them all of the options again.
Add new Pokemon: If the user picks this option, the program must prompt the user to enter each of the fields for a new Pokemon. The size of the Pokedex will need to dynamically increase to store the new data.
Quit: The program will exit.
Your program should continue searching and printing/writing until the user chooses to quit.
Required Classes:
The following classes are required in your program. They will help organize the information that will be read in (or derived) from the files. You cannot modify, add, or take away any part of the class.
The Pokedex class will be used to hold information from the dex. txt file. This class holds information about the Pokedex.
class Pokedex {
string trainer;
int num_pokemon;
Pokemon* dex;
};
The Pokemon class will also be used to read in information from the dex. txt file. This class holds information about a Pokemon.
class Pokemon{
int dex_num;
string name;
string type;
string moves[4];
};
Required Input File Format
Your program must accommodate the file formats as specified in this section. The spellbooks. txt file has the following structure. The file information will be provided in sets (corresponding to each spellbook). Each spellbook will be accompanied by a listing of the spells inside.
The dex. txt file will have the following pattern:

etc...

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
You know the right answer?
When starting the program, the user will provide one command line argument. The command line argumen...
Questions
question
English, 30.11.2020 20:00
question
Mathematics, 30.11.2020 20:00
question
Mathematics, 30.11.2020 20:00
question
History, 30.11.2020 20:00
question
Mathematics, 30.11.2020 20:00
question
Mathematics, 30.11.2020 20:00
question
Mathematics, 30.11.2020 20:00
Questions on the website: 13722360