Question
FillArray (c++) Filling a two-dimensional array with consequtive integers. In the example, the array is filled with rows from left to right. We start filling
FillArray (c++)
Filling a two-dimensional array with consequtive integers. In the example, the array is filled with rows from left to right. We start filling in from the top left corner.
Example for the array 3 x 4:
1 2 3 4 5 6 7 8 9 10 11 12
The solution consist of three projects:
FillArrayLib - library containing fillArray function,
FillArrayUnitTest - unit test for fillArray function,
FillArrayApp - sample aplication calling fillArray function.
Task 1
Verify the fillArray function by:
executing unit tests,
running the FillArrayApp application,
run and Debug selected test.
Task 2
Modification of the way of filling the array. Each student implements one filling method. You should:
first modify the unit tests according to the array filling method,
modify the implementation of the fillArray function,
verify correctness of the fillArray function using wtitten unit tests.
Ways of fillings an array:
start from one corner (NW, NE, SW, SE),
fill array diagonally,
all diagonals up (DIAG UP),
all diagonals down (DIAG DOWN),
fill array horizontally alternately (HOR)
fill array vertically alternately (VER)
FillArray Filling a two-dimensional array with consequtive integers. In the example, the array is filled with rows from left to right. We start filling in from the top left corner. Example for the array 34 : 159261037114812 The solution consist of three projects: - Fillarraylib - library containing fillarray function, - FillarrayUnitTest - unit test for fillarray function, - FillarrayApp - sample aplication calling fillarray function. Task 1 - Verify the fillarray function by: - executing unit tests, - running the FillarrayApp application, - run and Debug selected test. Task 2 Modification of the way of filling the array. Each student implements one filling method. You should: - first modify the unit tests according to the array filling method, - modify the implementation of the fillarray function, - verify correctness of the function using wtitten unit tests. Ways of fillings an array: - start from one corner (NW, NE, SW, SE), - fill array diagonally, - all diagonals up (DIAG UP), - all diagonals down (DIAG DOWN), - fill array horizontally alternately (HOR) - fill array vertically alternately (VER)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started