ASSIGNMENT 5 

Include as a comment at the beginning of your source code: Name, Section (MW or TTH), and Assignment Number. Include any comments within your source code to clarify your logic in the cases where this is necessary.

Ex 1.

Write an application that can hold five integers in an array. You can initialize the array elements with hard-coded values; you need not read them in from the keyboard. Display the integers from first to last (in terms of their order in the array, not sorted by value), and then display the integers from last to first (in terms of their order in the array).

Ex 2.

Write an application that than stores 10 prices in an array, such as $2.34, $7.89, $1.34, and so on. You can initialize the array elements with hard-coded values; you need not read them in from the keyboard. Display the sum of all the prices. Display all values less than $5.00. Calculate the average of the prices, and display all values that are higher than the calculated average value.