Create a Java Project and call it Project2.

Create a class and call it MainClass.

Configure MainClass by deleting the comment and adding a header.

The header shall contain your name, and COP1000.

2. 10 points

Suppose you are buying 5 items and their costs are $ 1.25, 15.00, 7.25, 3.50, and 22.30.

Create 5 variables and then calculate the sum of the 5 variables.

Calculate the average cost of the 5 items. (average = cost / number of items.)

All of your variables should be of data type double.

Display to the console the total cost and the average.

3. 10 points

Test your software and take a screen shot of the results.

4. 20 points

Submit the screenshot (jpg) of the Console showing the results, and submit the java file.

Q&A Education