Demonstrate ability to use an Array.
1. Write a program that reads in a list of integer values, one per line, and outputs their sum as well as all the numbers read in. With each number annotated to say what percentage it contributes to the sum. Your program will ask the user how many integers there will be, create an array of that length, and then fill the array with the integers input.
------------------------------------------------------------
Sample Dialog:
How many number will you enter?
4
Enter 4 integers one per line.
2
1
1
2
The sum is 6
The numbers are:
2 33.3333% of the sum
1 16.6666% of the sum
1 16.6666% of the sum
2 33.3333% of the sum
------------------------------------------------------------
Use a method that takes the entire array as one argument and returns the sum of the numbers in the array.
This program needs to be done in Java. The compiler I use for these programs is called Textpad and the book for my class is called, "JAVA An Introduction To Computer Science and Programming" by Walter Savitch
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
## Platform
Program needs to work on Win XP