# Project 13

One - dimensional Array, Floor Function(50 points)
• Allow the user to enter "n" many floats at the keyboard. Use a posttest loop to fill the floats into a one-dimentional array.
• Using sample output 1 as an example, your array must be filled in the following manner :
num[0] = 56.123, num[1] = 95.8, num[2] = 11
Using sample output 2 as an example, your array must be filled in this manner :
num[0] = 5, num[1] = 26, num[2] = 8, num[3] = 56.254
• After entering the data, use a for loop to sum the numbers.
• Then use a seperate for loop to output the numbers. The last number must not have a "+" sign preceeding it.
• Calculate and output the average of those numbers.
• The average must be rounded to the hundredths place. Do not use printf or setprecision to do this. You must use the floor function which uses the math.h header file.
• Make sure your program can display the sample outputs below.
• Your code must be well documented. Also include your name, date, project number and a breif description of the program.

```
Sample output1

Enter number 1 : 56.123

Another number? (y/n): y

Enter number 2 : 95.8

Another number? (y/n): y

Enter number 3 : 11

Another number? (y/n): n

The Average
-----------

( 56.123 + 95.8 + 11 ) / 3 = 54.31

Sample output2

Enter number 1 : 5

Another number? (y/n): y

Enter number 2 : 26

Another number? (y/n): y

Enter number 3 : 8

Another number? (y/n): y

Enter number 4 : 56.254

Another number? (y/n): n

The Average
-----------

( 5 + 26 + 8 + 56.254 ) / 4 = 23.81
```