Question: C PROGRAMMING LANGUAGE!!!!!! Your program reads one text file: input.txt Write comments in your code. Do not print anything to stdout and stderr. Do not

C PROGRAMMING LANGUAGE!!!!!!

Your program reads one text file:

input.txt

C PROGRAMMING LANGUAGE!!!!!! Your program reads one text file: input.txt Write comments

Write comments in your code.

Do not print anything to stdout and stderr.

Do not submit any of the files you used for testing.

Do not submit your output file.

Do not use header files

All of the followings are possible deductions from Max Grade.

#define HARD_CODED_VALUES -10.

Compile errors: -100.

Irrelevant code: -100.

Major parts are missing: -100.

Unnecessarily long code: -30.

Using language elements and libraries which are not allowed: -100.

Not caring about the structure and efficiency: -30. (avoid using hard-coded values, avoid hard-to-follow expressions, avoid code repetition, avoid unnecessary loops).

Significant number of compiler warnings: -10.

Not commented enough: -5. (Comments are in English).

Source code encoding is not UTF-8 and characters are not properly displayed: -5. (You can use Visual Studio Code, Sublime Text, Atom etc Check the character encoding of your text editor and set it to UTF-8).

Missing or wrong output values: Fails the test.

Output format is wrong: -30.

Infinite loop: Fails the test.

Segmentation fault: Fails the test.

Fails 5 or more random tests: -100.

Fails the test: deduction up to 20.

Prints anything extra: -30.

Unwanted chars and spaces in output.txt: -30.

Submission includes files other than the expected: -10.

Submission does not follow the file naming convention: -10.

Your program creates a text file: - output.txt Your program solves the following problem: You are given a water level information L. Condition: 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem you need to identify islands in a 2D grid of elevation data where the elevation is above a given water level L Well use a depthf... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!