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 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text โ€œinvalid staff idโ€ should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
You know the right answer?
When starting the program, the user will provide one command line argument. The command line argumen...
Questions
question
Mathematics, 09.04.2021 06:30
question
Mathematics, 09.04.2021 06:30
Questions on the website: 13722361