subject
Engineering, 17.12.2020 17:40 lolyourenotpoppunk

Create a script file that asks the user to input the number of rows, number of columns, and a constant integer value (may be negative, zero or positive) and then creates the matrix. Use a user-defined function to obtain the input. Check that the number of rows and number of columns is between 1 and 8 inclusive [1:8], and that the constant value IS an integer. Give the user another chance if they enter an illegal value, do not just shut down the program. You can either put the user function in the body of the main script file or create a separate file and submit it at the end of the exam in one of the fake questions. Check your program for these 2 cases:

2 rows, 4 columns, value of -77
2 rows, 6 columns, value of 13

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 19:10
Acircular aluminum shaft mounted in a journal is shown. the symmetric clearance gap between the shaft and journal is filled with sae 10w-30 oil at t 30°c. the shaft is caused to turn by the attached mass and cord. develop and solve a differential equation for the angular speed of the shaft as a function of time.
Answers: 2
You know the right answer?
Create a script file that asks the user to input the number of rows, number of columns, and a consta...
Questions
question
Mathematics, 10.04.2020 05:05
question
History, 10.04.2020 05:06
question
Mathematics, 10.04.2020 05:06
question
History, 10.04.2020 05:06
question
English, 10.04.2020 05:06
question
Arts, 10.04.2020 05:06