Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*OBJECT = MATRIX Instruction : One is a word file or pdf file (both is okay). This file consists of your explanation of solution. The

image text in transcribed

*OBJECT = MATRIX

Instruction :

  1. One is a word file or pdf file (both is okay). This file consists of your explanation of solution. The explanation should be given using narrative or pseudocode, and flowchart for better explanation. A detailed explanation of your solutions such as reasoning of algorithm of choice will give better score.
  2. Another file is .c files of your solution that represent each question.

PLEASE USE C PROGRAMMING AND USE HEADER INCLUDE STDIO.H

MAKE THE CODE AS SIMPLE AS U CAN

3. (35 point) Given two 2D array of O with size N*N. There are some positions in the matrix that have value of 1. 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 00 100 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 01010 0 1010 0 1 0 1 0 0 0 1 0 0 Output: object 2 is bigger Input: Matrix 1 0 1 1 1 0 01 0 1 0 010 0 1 0 1 110 0 0 000 Matrix 2 0 1 110 0 1 0 1 0 0 1 0 1 0 0 1 1 1 0 0 0 000 Output: object 1 and 2 has the same size

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

How would you establish the value of learning this material?

Answered: 1 week ago

Question

fvtrfrg

Answered: 1 week ago