V. (10pts) A petroleum exploration company has collected some depth readings (in meters) for a square section of the ocean. The diagonal of the square is parallel to the equator as illustrated below. 300 315 290 320 343, 330 310 325 280 North The readings are stored in a plain text file named depdata.txt so that the first line of the file contains the total number of readings. This is followed by the readings in row order. Write a complete. C program that will A. Read the data into two-dimensional array named depth. page 3 of B. Determine the location (in terms of row and column) of the deepest point. Print out the location and the depth, clearly labelled. For example, if the data is as given above then a sentence such as The deepest point is 342 meters at row 1, column 1. should be printed. C. Two separate crews did exploratory drilling in the area, one in the northern half (above the equator) and one in the southern half (below the equator). Determine the average depth for the northern half and write this out, clearly labelled. The values on the equator (diagonal) are not included in either half. For example, if the depth data is as given above, then the "northern" average depth is (315+290+330)/3 = 311.6667.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

can someone help me with this problem in C and explain how to do it step by step

 

V. (10pts) A petroleum exploration company has collected some depth readings (in meters) for a square
section of the ocean. The diagonal of the square is parallel to the equator as illustrated below.
300, 315 290
320 342, 330
310 325 280,
North
The readings are stored in a plain text file named depdata.txt so that the first line of the file
contains the total number of readings. This is followed by the readings in row order. Write a complete
C program that will
A. Read the data into two-dimensional array named depth.
page 3 of
B. Determine the location (in terms of row and column) of the deepest point. Print out the location and
the depth, clearly labelled. For example, if the data is as given above then a sentence such as
The deepest point is 342 meters at row 1, column 1.
should be printed.
C. Two separate crews did exploratory drilling in the area, one in the northern half (above the
equator) and one in the southern half (below the equator). Determine the average depth for the
northern half and write this out, clearly labelled. The values on the equator (diagonal) are not
included in either half. For example, if the depth data is as given above, then the "northern"
average depth is (315+290+330)/3 = 311.6667.
Transcribed Image Text:V. (10pts) A petroleum exploration company has collected some depth readings (in meters) for a square section of the ocean. The diagonal of the square is parallel to the equator as illustrated below. 300, 315 290 320 342, 330 310 325 280, North The readings are stored in a plain text file named depdata.txt so that the first line of the file contains the total number of readings. This is followed by the readings in row order. Write a complete C program that will A. Read the data into two-dimensional array named depth. page 3 of B. Determine the location (in terms of row and column) of the deepest point. Print out the location and the depth, clearly labelled. For example, if the data is as given above then a sentence such as The deepest point is 342 meters at row 1, column 1. should be printed. C. Two separate crews did exploratory drilling in the area, one in the northern half (above the equator) and one in the southern half (below the equator). Determine the average depth for the northern half and write this out, clearly labelled. The values on the equator (diagonal) are not included in either half. For example, if the depth data is as given above, then the "northern" average depth is (315+290+330)/3 = 311.6667.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY