Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(35 point) Given two 2D array of 0 with size N*N. There are some positions in the matrix that have value of These values of

  1. (35 point) Given two 2D array of 0 with size N*N. There are some positions in the matrix that have value of These values of 1 will create objects. Check which object has bigger Area (not circumference). If it has the same size print: object 1 and 2 has the same size

For example:

Input:

Matrix 1

0

0

1

0

0

0

1

0

1

0

0

0

1

0

0

0

0

0

0

0

0

0

0

0

0

Matrix 2

0

0

1

0

0

0

1

0

1

0

0

1

0

1

0

0

1

0

1

0

0

0

1

0

0

Output: object 2 is bigger

Input:

Matrix 1

0

1

1

1

0

0

1

0

1

0

0

1

0

1

0

0

1

1

1

0

0

0

0

0

0

Matrix 2

0

1

1

1

0

0

1

0

1

0

0

1

0

1

0

0

1

1

1

0

0

0

0

0

0

Output: object 1 and 2 has the same size

Use C languange with library and use the most simplest code. Please include pseudocode and flowchart

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions