Sunteți pe pagina 1din 1

LAB ASSIGNMENT 4

Write a program that reads in a two-dimensional array representing the coordinates


of points in space.
The program should determine the largest absolute value in the array and scale
each element of the array by dividing it by this largest value.
The new array, which is called the normalized array, should have the largest value.
The program consists of two functions:

main() obtains the number of data points, and the x, y, and z coordinates
of each point.
normalize() normalize the array.

S-ar putea să vă placă și