Data point's centroid Calculator is a simple application without graphics that calculates the centroid of a collection o

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Data point's centroid Calculator is a simple application without graphics that calculates the centroid of a collection o

Post by answerhappygod »

Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 1
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 1 (42.98 KiB) Viewed 42 times
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 2
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 2 (44.98 KiB) Viewed 42 times
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 3
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 3 (26.62 KiB) Viewed 42 times
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 4
Data Point S Centroid Calculator Is A Simple Application Without Graphics That Calculates The Centroid Of A Collection O 4 (20.4 KiB) Viewed 42 times
Data point's centroid Calculator is a simple application without graphics that calculates the centroid of a collection of data points. In mathematics, the centroid is the mean position of all the points in all of the coordinate directions. In this project, your project should have the ability to: 1. Read the points coordinates (x, y and z coordinates), then, 2. Calculates and displays the centroid of the points, and finally, 3. Finds the Distance between calculated centroid (point) and all stored data points. Figure 1 shows a mathematical walk through example of two-dimensional coordinates. Notice that this is a 2-D example; Meaning that it operates on points having 2-dimensional coordinates (x and y). You need to include z coordinates in your calculations. centroid (5,4.89) The centroid of the points (.1₂. 1₂), (.1₂. 1/₂), (1₂. 12).... (x,y) is (3+5+3) (³√₂ + X₂ + X₂ + + X X/₂ + y₂ + ½ + Xo Xx + y + xy + + X/₂ ) -*%) 72 72 Figure 1: the centre of a 2-D plots
Where n is the number of stored points in your system. Then after calculating the value of the centroid, you need to use following formula to find the distance between the calculated centroid and all stored data points in your system. Distance Formula: Given the two points (X1, y1) and (x2, 12), the distance between these points is given by the formula: d = √(x₂-x₂)² + (x₂ −₁)² centroid (5,489) 1 d2 d3 dó The centroid of the points (₂.1₂), (1₂. 1/₂). (15. 3₂). (x,y) is (√5 + x₂ + x₂ ++ X₂ X + ₂ + 3 72 71 Figure 2: distance between calculated centroid and all stored data points Figure 2 shows an example of two-dimensional coordinates and the calculated distance between the centroid and all data points (dl, d2, d3, ....). Project Menu Description Use Functions and Menu to solve each part of project as flowing description: 1. User Menus: a. Add a new point and its corresponding coordinates (x, y and z coordinates) from the user (keyboard input). b. Delete a point and its corresponding coordination (x, y and z coordinates) using point ID entered by the user. c. Edit a point coordination (x, y and z coordinates) using point ID entered by the user.
2. File Menus: a. Read a set of points coordinates (x, y and z coordinates) from a data file without duplication, where Figure 2 shows the structure of data file. b. Write all points' coordinates to a data file. a. Display stored points, point ID and its corresponding coordinates (x, y and z coordinates) on the screen. b. Calculate and display the Centroid of stored points. c. Display the distance between the calculated centroid and all stored data points 3. Data Points Menus: 4. Exit
Point ID's must be unique (no 2 points can have the same ID). For example, the point IDs, below, are 4, 5, 2, 1, and should not be 2, 5, 2, 1 Sample data file: 4 5 -4 3 4 4 3 -2 5 -4 -3 -1 2 -9 8 6 1 This sample should be stored as: 5 -4 3 4 3 -2 -4 -3 -1 6 4 5 2 1 00 6 Coordination (x, y, z) Point ID # Points Figure 3: example of input data file
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply