Question: Please write in C++ I believe these 2 questions is all together. Please write in C++ and separate both of the code. GHP #1 (due
Please write in C++
I believe these 2 questions is all together. Please write in C++ and separate both of the code.
GHP #1 (due 1/31) Adapted from Page 43, Problem #4. Write a program that (1) creates a static matrix of integers (no larger than 3 x 3), (2) fills the matrix by (a) asking the user to enter them, or (b) hardwires values into the matrix, or (c) uses a random number generator, (3) displays the matrix, (4) queries the user for a value and searches the matrix reporting whether or not the target value is found (but not reporting where the value was found). Break should be avoided, and the value of a loop control variable in a for loop should not be altered outside the for statement. GHP #2 (due 2/14) Static matrices must be used for this assignment; that is memory for the matrix must be allocated at compile time; solutions that do not use static allocation are unacceptable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
