Write a program that creates an array of four float elements. Use a for loop to read and store a float value at each index in the array. Then use a for-each loop to print out each element to the console.