Question: Build a python program that will allow the user to input Matrix data in a similar format to your Final Project. On the first line,
Build a python program that will allow the user to input Matrix data in a similar format to your Final Project. On the first line, the user will enter the number of rows followed by the number of columns. On the second line the user will input all matrix integers separated by spaces. On the third line the user will enter a single integer. If that number exists in the matrix, the program should PRINT the row number and column number for all matching integers in the given matrix. In addition, this program should loop until the user enters for both the row and column information.
NOTES:
Assume All Inputs are Integers
If the special number is not found, nothing should be printed to the screen
example user input
# The special number is
# and entered for next data set
The data entered represents the following matrix:
example program output for user input :
found @ in a Matrix
found @ in a Matrix
The program ends because was entered for the next matrix
example user input
The first matrix has rows and columns
The special number is
the next matrix has rows and columns
The special number is
Finally and is entered for the next dataset
example program output for user input :
found @ in a Matrix
found @ in a Matrix
found @ in a Matrix
found @ in a Matrix
The program ends because was entered
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
