Using only a single array to store the product prices, write a Java program that provides the following functionalities. 1. Calculates and prints the average price of all products. 2. Finds and prints the most expensive item in the inventory. 3. Finds and prints the least expensive item in the inventory. Note: The solution should not include a class.