Instructions: Write a complete C++ program that meets the following requirements: This program must compile and run successfully on either Visual Studio 2017 or 2019. Any C++ program that does not compile and run successfully on either version will receive a grade of 0. The program must be written in C or C++. For every day a project is turned in late 50 points will be deducted. 5 points are deducted for each resubmission. If you submit multiple solutions the only solution that will be graded is the last one. The grade will include a late penalty if the last one was submitted past the due date but prior versions were not. Main Function:
1) Initialize a 2D vector of integers with the following values: { { 11315 }{ 11315 }{ 11315 }{ 11315 }{ 11315 } } Name this 2D Vector Data1.
2) Initialize a 2D vector of integers with the following values: { { 12345678910 }{ -2-121}{ }{ 222 }} Name this 2D Vector Data2.
3) Run a function named SearchEven. Pass Data1 as an argument to the SearchEven function. SearchEven will return a 1D vector. This vector will contain the rows and columns of where each even number in the 2D parameter is located. If the 2D vector contains no even numbers the vector returned will only contain the value -1.
4) Use a separate function to display the contents of the vector that SearchEven returns. If Data1 contained at least 1 even number then output one row and 1 column per line. If Data1 did not contain any even numbers then display a message that indicates this. Name this function: Display_Locations.
5) Run the function SearchEven again. Pass Data2 as an argument to the SearchEven function.
6) Use the Display_Locations function to display the contents of the vector that SearchEven returns. If Data2 did not contain any even numbers then display a message that indicates this.
Requirements: Complete Code in | C++
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more