Question
Please use C++ programming!! In oceanography, ships collect all kinds of data at any one latitude and longitude position, there might be temperature, conductivity, salinity,
Please use C++ programming!!
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:
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:
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
32XBT.flat1.txt
Each of txt file's data is longer than this picture
THANK YOU FOR HELPING!! :)
Xsea date depth-xbt tmp -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 p956 m586 e t322 p629 d011 777 888 000 t999 a555 1 222 333 777 n222 1111 e555 m555 333 t000 666 000 222 000 e999 t999 a999 d111 s000 X333Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started