Question: in codeblock for c++ program 3. Code, compile and upload the following program as 02.cpp. (20 pts) Write a program that uses functions to output
3. Code, compile and upload the following program as 02.cpp. (20 pts) Write a program that uses functions to output the described image. a) Create a function named input that: 1) Accepts some required values as input such as the number of rows and columns of the matrix, which integer value to start and what is offset between each number in the matrix. b) Create a function named output that: 1) Accepts rows, columns, startVal and offset as paraneters. 2) Outputs the specified numbers in the matrix Example Output How many rows in the matrix: 4 How many columns in the matrix: 3 What is the starting value in the matrix: 10 What is the offset between each number in the matrix: 2 10 12 14 16 18 20 22 24 26 28 30 32 Example-output-(Extra Credit 5 pts: setti the matrix headings) How many rows in the matrix: 4 How many columns in the matrix: 3 What is the starting value in the matrix: 10 What is the offset betveen each number in the matrix: 2 1) 1 2) 16 3) 22 4) 28 12 18 24 30 14 20 26 32 Prtscn Home F3 FS F7 58 19 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
