Question: please write in C++ in easy format. Create a program that analyzes spatial data. Being able to determine the frequency and distance between points has
please write in C++ in easy format.
Create a program that analyzes spatial data. Being able to determine the frequency and distance between points has all kinds of applications, from computer graphics to machine learning. In this project, the spatial data will be given to you in the form of points, either 2D (x, y) or 3D (x, y, z) - and you will need to receive the data input by uploading a file
This is the link for data : https://cs103-proton.glitch.me/1m.txt
After the file upload, your program will need to analyze and output the following:
- Count the number of 2D points in the uploaded file
- Count the number of 3D points in the uploaded file
- Count the frequency of 2D points - how many points in the dataset have the same (x, y)?
- Count the frequency of 3D points - how many points in the dataset have the same (x, y, z)?
- Calculate the farthest distance between two 2D points in the dataset
- Calculate the farthest distance between two 3D points in the dataset
- Write at least 6 functions outside of main to accomplish these tasks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
