The project is asking me to create a code using single dimensional arrays to compute the weekly hours for each employee (there are 8). So I have to gather the hours each employee has worked in one week. Then I have to get the sum of the hours worked
This array contains the elements from array to array. The new
operator is used to create the array and initialize the array elements
to their default values. In this example, all the array elements are
initialized to zero.
An array that stores string elements can be declared in the same way. For example:
It is possible to initialize an array upon declaration,
in which case, the rank specifier is not needed because it is already
supplied by the number of elements in the initialization list. For
Cool Thanks Grady, do you mind helping me with another part real quick that i'm confused about? Now that I have my initialized for this problem, Im having trouble figuring out how to create a process that will take the hours the employees worked, adding them together to find the sum, then displaying them in descending order.