1. To compile your program you can use the provided ./runit.sh script which in turn compiles...
Fantastic news! We've Found the answer you've been seeking!
Question:
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/05/6645fbab02f57_4426645fbaac5c35.jpg)
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/05/6645fbac33c2d_4446645fbac14076.jpg)
Transcribed Image Text:
1. To compile your program you can use the provided ./runit.sh script which in turn compiles program using g++ -g std=c++11 -Wall -Wextra -Wno-sign-compare *.cpp, and only use create-output.sh script once all functionality is in place. 2. Our library can have a maximum of 10 Pokemon as set by static const int MAX = 10; 3. When you remove a Pokemon from the Pokedex, the order of the Pokemon in the Pokedex should stay the same. 4. When you print the Pokedex object, the output has to be as specified as in the test functions in main.cpp 5. If a Pokedex function gets an invalid parameter, such as trying to erase Pokemon at location -5, it should print an error message using cerr, but continue running. If the function needs to return a value, the return value is implementation dependent (you get to choose it) 6. The create-output.sh script compiles and runs your program with the command line parameters as follows: ./a.out test-1.txt test-2.txt test-3.txt non-existing-file.txt When testing you should run your program on different tests. 7. When the pokedex is empty, calling some functions such as front(), back(), at(int n), etc. still need to return a value. In those cases, you can return pokemons[0] 8. After you have completed a function, look at it one more time to see if it can be simplified. 9. Do not use this->unless it is needed for clarity 10. You can compare strings using '>'; you do not need to write your own function 11. Class methods are declared in the .h file and implemented in the .cpp file 12. Make sure you fix all the warnings produced by clang-format. You can set Visual Studio Code to "Format on Save" in Settings which will automatically fix your indentation problems. 13. You only need 1 line of documentation for each function. You can have more comments if (and only if) the additional comments are helping you read your code 14. When inserting a pokemon, you need to find the correct location alphabetically and then shift all the pokemon that come after it. You should not add the pokemon and sort the array each time. That is inefficient. 15. Take advantage of helper functions, such as empty()), in other functions instead of comparing msize to zero each time. 16. When removing a pokemon, you do not have to set the value in the array to ", you can leave the old value in place. 17. If you transfer your files from a Windows machine to CSS Linux lab, the runit.sh, create-output.sh and check-code- coverage.sh scripts can end up without execute permissions. To fix it, as well as fixing linefeed endings from Windows, use chmod 755 *.sh and dos2unix *.sh To prevent Filezilla from changing end-of-line character, set FileZilla 3.5.0 the setting in Edit > Settings > Transfers > File Types > Default transfer type > Binary. pokedex.cpp to implement the functions specified in pokedex.h. All functions in the .h and .cpp file have to be documented. 1-2 lines of documentation is usually sufficient. Uncomment the tests in main.cpp and pokedex-commands.cpp as you implement the functions Run create-output.sh script to create output.txt file 1. To compile your program you can use the provided ./runit.sh script which in turn compiles program using g++ -g std=c++11 -Wall -Wextra -Wno-sign-compare *.cpp, and only use create-output.sh script once all functionality is in place. 2. Our library can have a maximum of 10 Pokemon as set by static const int MAX = 10; 3. When you remove a Pokemon from the Pokedex, the order of the Pokemon in the Pokedex should stay the same. 4. When you print the Pokedex object, the output has to be as specified as in the test functions in main.cpp 5. If a Pokedex function gets an invalid parameter, such as trying to erase Pokemon at location -5, it should print an error message using cerr, but continue running. If the function needs to return a value, the return value is implementation dependent (you get to choose it) 6. The create-output.sh script compiles and runs your program with the command line parameters as follows: ./a.out test-1.txt test-2.txt test-3.txt non-existing-file.txt When testing you should run your program on different tests. 7. When the pokedex is empty, calling some functions such as front(), back(), at(int n), etc. still need to return a value. In those cases, you can return pokemons[0] 8. After you have completed a function, look at it one more time to see if it can be simplified. 9. Do not use this->unless it is needed for clarity 10. You can compare strings using '>'; you do not need to write your own function 11. Class methods are declared in the .h file and implemented in the .cpp file 12. Make sure you fix all the warnings produced by clang-format. You can set Visual Studio Code to "Format on Save" in Settings which will automatically fix your indentation problems. 13. You only need 1 line of documentation for each function. You can have more comments if (and only if) the additional comments are helping you read your code 14. When inserting a pokemon, you need to find the correct location alphabetically and then shift all the pokemon that come after it. You should not add the pokemon and sort the array each time. That is inefficient. 15. Take advantage of helper functions, such as empty()), in other functions instead of comparing msize to zero each time. 16. When removing a pokemon, you do not have to set the value in the array to ", you can leave the old value in place. 17. If you transfer your files from a Windows machine to CSS Linux lab, the runit.sh, create-output.sh and check-code- coverage.sh scripts can end up without execute permissions. To fix it, as well as fixing linefeed endings from Windows, use chmod 755 *.sh and dos2unix *.sh To prevent Filezilla from changing end-of-line character, set FileZilla 3.5.0 the setting in Edit > Settings > Transfers > File Types > Default transfer type > Binary. pokedex.cpp to implement the functions specified in pokedex.h. All functions in the .h and .cpp file have to be documented. 1-2 lines of documentation is usually sufficient. Uncomment the tests in main.cpp and pokedex-commands.cpp as you implement the functions Run create-output.sh script to create output.txt file
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
1.Which statements about the CDS market are true? The North America CDX is an index of credit default swap contracts on investment grade names. The ITRAXX is an index of European references. The...
-
Large Program 3 Hangman COP3223C Introduction to Programming with C Spring 2022 Dr. Andrew Steinberg Background Story of this Assignment You are about to implement your third large program in this...
-
It is the post-apocalyptic era, and hardship and depression run rampant. You are currently at the bottom of a staircase in the basement of an abandoned building looking at what is pure...
-
Baseball Magazine, a domestic corporation, markets pictures of baseball players on its website. Its database server is in the Cayman Islands. Baseball fans access the Web page and use their credit...
-
For the data in Exercise 2: a) Draw a boxplot using the quartiles from Exercise 8b. b) Does the boxplot nominate any outliers? c) What purchase amount would be considered a high outlier?
-
Amounts of the assets and liabilities of Ellen Samuel Banking Company, as of January 31, 2010, are given as follows. Also included are revenue and expense figures for the year ended on that date...
-
For each of the independent cases below, identify the principle of internal control that is violated, and recommend what should be done to remedy the violation. I. In order to save money, Regal...
-
Blooms Jeans is searching for new suppliers, and Debbie Bloom, the owner, has narrowed her choices to two sets. Debbie is very concerned about supply disruptions, so she has chosen to use three...
-
modeling Thermal and Fluid detailed MATLAB system describe how all the blocks should come together and THEIR SPECIFIC CONNECTION IN THE simulink MODEL for the parameters V = 100; volume of the tank...
-
M D) +1 30) What is the oxidation number of bromine in the BrO3-ion? A) +5 B)-1 C) +7 here reduction takes place in an electrochemical cell. E) +3
-
14) A certain boat displaces a volume of 8.3 m of water. (The density of water is 1000 kg/m.) What is the mass of the water displaced by the boat? What is the buoyant force acting on the boat
-
Susie is a 55-year old woman, 64 in.tall, and 150lbs. After performing a PFT, her values were asfollows: FVC = 2.8 L, BTPS and FEV 1.0 =2.0 L, BTPS. Wereher values normal? Provide evidence for why or...
-
You've just eaten a Big Mac (two all beef patties, special sauce, lettuce, cheese, pickles, onions on a sesame seed bun).Explain which components will be hydrolyzed by each organ of the alimentary...
-
How would advocates of the Taylor Rule or Monetarism probably feel about the Fed's policy moves during the terms of Fed Chairs Bernanke, Yellen, and Powell? What is currency manipulation? Why would a...
-
Items from the 20x1 income statement, statement of retained earnings, and balance sheet of ABC, Inc., are listed below in alphabetical order. Solve for the missing amounts. (Loss amounts should be...
-
3. What is the average expected return and standard deviation of the mutual fund SC&CO having in mind your expectations about the economic cycle, risk and returns in each of the stages presented in...
-
Quality Chicken grows and processes chickens. Each chicken is disassembled into five main parts. Information pertaining to production in July 2012 is: Joint cost of production in July 2012 was $50. A...
-
During the first year of operation, 2012, Wells Appliance Co. recognized \(\$ 300,000\) of service revenue on account. At the end of 2012, the accounts receivable balance was \(\$ 58,000\). For this...
-
Ming Inc. experienced the following transactions for 2011, its first year of operations: 1. Issued common stock for \(\$ 50,000\) cash. 2. Purchased \(\$ 145,000\) of merchandise on account. 3. Sold...
-
Northeast Sales had the following transactions in 2011: 1. The business was started when it acquired \(\$ 500,000\) cash from the issue of common stock. 2. Northeast purchased \(\$ 1,200,000\) of...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App