Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ code In oceanography, ships collect all kinds of data at any one latitude and longitude position, there might be temperature, conductivity, salinity, and depth.

C++ code In oceanography, ships collect all kinds of data at any one latitude and longitude position, there might be temperature, conductivity, salinity, and depth. The SOIREE project collected temperature and depth data as it transited to the research site from New Zealand. There are 3 files here: 30XBT.flat1.txt, 31XBT.flat1.txt, and 32XBT.flat1.txt The data in each file looks something like this: Xseq date time lon lat depth_xbt temp_xbt 30 19990206 0355 142.732 -59.087 0.6 3.59 30 19990206 0355 142.732 -59.087 1.2 2.85 30 19990206 0355 142.732 -59.087 1.9 2.66 The first line is a header that describes the data: the Sequence number, the date (February 6, 1999), the time the data was collected, the longitude and latitude of the data, the depth in meters, and the temperature in degrees C. The rest of the file contains the data. The data is fixed record size of 60 characters per record. Each field is left-justified and contains data like this: Columns Value 1-6 Sequence Number 7-14 Date 17-20 Time 23-29 Longitude 32-38 Latitude 41-45 Depth 52-60 Temperature Read all three datasets. The datasets have a problem in that when the data collection ends, a temperature higher than 30 degrees is recorded. For each dataset, determine the depth at which the last valid data point exists, and output the Sequence number, the date, longitude, latitude, depth and temperature for the deepest point for each record, as well as the number of valid points in each dataset. Assume a maximum of 1500 data points per data set. Create functions to determine the minimum temperature and the maximum temperature for each dataset. Output the depth at which those temperatures occur. Use the function openFileIn() from page 667 in the text. Your output should look similar to the output below (the actual values have been removed in the example).

30XBT.flat1.txt,

31XBT.flat1.txt, and 32XBT.flat1.txt are in next part of this question

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions