CS 2410 Search 2D Vector Assignment Due Before: Friday, September 10th, 11:30 p.m. Instructions: Write a complete C++ program that meets the following requirements: This program must compile and run...

Friday, September 10th, 11:30 p.m.


CS 2410 Search 2D Vector Assignment Due Before: Friday, September 10th, 11:30 p.m. 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: { { 1,1,3,1,5 },{ 1,1,3,1,5 },{ 1,1,3,1,5 },{ 1,1,3,1,5 },{ 1,1,3,1,5 } } Name this 2D Vector Data1. 2) Initialize a 2D vector of integers with the following values: { { 1,2,3,4,5,6,7,8,9,10 },{ -2,-1,2,1},{ },{ 2,2,2 }} 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. Sample Run: The program needs generate the same output as the executable (.exe) file that was uploaded to Blackboard. Notes: 1) You will receive a grade of F not only on this project but also on your overall course grade if you use code that has been posted to an online tutoring service such as but not limited to chegg or coursehero. This can be done retro- actively after you graduate. Your instructor will be checking these and other websites for program similarity. If your code is too similar, you will receive an F in the course. Do not post this question or any course materials online in any format. 2) If you use any references (such as from books) you need to list these references in comments at the top of your program. You can refer to the following C++ reference websites: a. https://en.cppreference.com/w/ b. http://www.cplusplus.com/reference/ c. https://www.tutorialspoint.com/cplusplus/cpp_references.htm d. https://www.geeksforgeeks.org/c-plus-plus/ If you use one of the above sites, you will need to state the exact web URL in comments at the top of your program. 3) The program that you turn in cannot exceed the size of 50 MB. Blackboard cannot reliably store submissions that are greater than this size. 4) The program that you turn in will be a compressed .zip folder that contains the entire project environment (header files and source files). Only compress the folder into a .zip or .zipx file type. No other compressed file type such as .rar or .7z will be accepted. A grade of 0 will be assigned if this happens. The contents of the .zip folder will look something like this: 5) This program needs to work with 2D vectors of integers of any size. 6) The 2D vectors can have any (non-negative) number of rows. 7) Each row can have any (non-negative) number of elements. 8) Making an algorithm before attempting to code this program will be helpful to you. 9) 50 points will be deducted for each day that this is turned in late. The most recent submission will be the one that is graded, even if it is late. This means that if you submit your project after the due date, 50 points will be deducted per day even if you turned in a previous version of your project prior to the due date. https://en.cppreference.com/w/ http://www.cplusplus.com/reference/ https://www.tutorialspoint.com/cplusplus/cpp_references.htm https://www.geeksforgeeks.org/c-plus-plus/
Sep 08, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here