This is an individual assessment. In this Lab Test, you must write a complete program to input an R-by-C matrix with your own data. R is the row and C is the column of the matrix. However, you MUST write a program by implementing the functions method. Here are the complete program requirements. Please read carefully. 1. Write a MAIN program that will call THREE user-defined functions. The task of each function is described below. 1.1 The FIRST function (named my_info) is to display your information, without passing parameters and return values, such as: a. Full Name b. Matrix No C. Course and Group d. then display a Plagiarism Declaration statement as below. "I confirm that this LAB TEST is my own work and is not copied from any other person's work." 1.2 The SECOND function (named get_matrix_size) is to accept two integers value from the user to specify the matrix size which is the size of 2 dimension array namely row and column. This function must use a pass value by the reference /address method. That means no return value is required in the function definition. You are not allowed to create global variables. 1.3 The THIRD function (named get_matrix_data) is to fill up all elements of the matrix with any integer value from the user. This function must use a pass by value method, which is consist of row and column from the MAIN function. After finishing the data input process, this function also needs to display again all the data. Please be creative in how you display your output. In the end, this function needs to return the lowest value from data in the matrix to the MAIN function. The MAIN function need to create a program to display this return value data.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 20SA
icon
Related questions
Question

Unique answer only

QUESTION 1
This is an individual assessment. In this Lab Test, you must write a complete program to input an R-by-C matrix with your own data.
R is the row and C is the column of the matrix. However, you MUST write a program by implementing the functions method.
Here are the complete program requirements. Please read carefully.
1.
Write a MAIN program that will call THREE user-defined functions. The task of each function is described below.
1.1 The FIRST function (named my_info) is to display your information, without passing parameters and return values, such
as:
a.
Full Name
b.
Matrix No
C.
Course and Group
d.
then display a Plagiarism Declaration statement as below.
"I confirm that this LAB TEST is my own work and is not copied from any other person's work."
1.2 The SECOND function (named get_matrix_size) is to accept two integers value from the user to specify the matrix size
which is the size of 2 dimension array namely row and column. This function must use a pass value by the reference /address
method. That means no return value is required in the function definition. You are not allowed to create global variables.
1.3 The THIRD function (named get_matrix_data) is to fill up all elements of the matrix with any integer value from the user.
This function must use a pass by value method, which is consist of row and column from the MAIN function. After finishing the
data input process, this function also needs to display again all the data. Please be creative in how you display your output. In
the end, this function needs to return the lowest value from data in the matrix to the MAIN function. The MAIN function need to
create a program to display this return value data.
Transcribed Image Text:QUESTION 1 This is an individual assessment. In this Lab Test, you must write a complete program to input an R-by-C matrix with your own data. R is the row and C is the column of the matrix. However, you MUST write a program by implementing the functions method. Here are the complete program requirements. Please read carefully. 1. Write a MAIN program that will call THREE user-defined functions. The task of each function is described below. 1.1 The FIRST function (named my_info) is to display your information, without passing parameters and return values, such as: a. Full Name b. Matrix No C. Course and Group d. then display a Plagiarism Declaration statement as below. "I confirm that this LAB TEST is my own work and is not copied from any other person's work." 1.2 The SECOND function (named get_matrix_size) is to accept two integers value from the user to specify the matrix size which is the size of 2 dimension array namely row and column. This function must use a pass value by the reference /address method. That means no return value is required in the function definition. You are not allowed to create global variables. 1.3 The THIRD function (named get_matrix_data) is to fill up all elements of the matrix with any integer value from the user. This function must use a pass by value method, which is consist of row and column from the MAIN function. After finishing the data input process, this function also needs to display again all the data. Please be creative in how you display your output. In the end, this function needs to return the lowest value from data in the matrix to the MAIN function. The MAIN function need to create a program to display this return value data.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr