Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago