subject

Write a function, called maxmat, which accepts an mxn matrix as input A and outputs one scalar value maxA, which is the maximum of the absolute value of all the elements in A without using the built-in function max(). The function needs to have two nested for loops for doing this operation. Hint: initialize variable maxA, and then update it with an if-statement.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
You know the right answer?
Write a function, called maxmat, which accepts an mxn matrix as input A and outputs one scalar value...
Questions
question
Social Studies, 27.12.2020 14:00
question
Mathematics, 27.12.2020 14:10
question
Physics, 27.12.2020 14:10
question
English, 27.12.2020 14:10
question
Mathematics, 27.12.2020 14:10
question
Mathematics, 27.12.2020 14:10
question
Mathematics, 27.12.2020 14:20
question
Mathematics, 27.12.2020 14:20
question
Mathematics, 27.12.2020 14:20
question
Mathematics, 27.12.2020 14:20
Questions on the website: 13722361