Programming Homework Help

I need help answering a few short and quick questions pertaining to the attached program. Carefully read through the code line by line, then answer the following questions in a Microsoft Word document

I need help answering a few short and quick questions pertaining to the attached program.

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

Carefully read through the code line by line, then answer the following questions in a Microsoft Word document:

  1. If an array had not been chosen to hold the data manipulated in this program, how else (i.e., with what other data types) could it have been represented?
  2. Which approach, using an array or using the alternative you identified in question #1, is shorter/easier?
  3. What is the output of this program?
  4. What would be the result of using a println() statement to display the value of arraynum[8]?
  5. How many values can arraynum contain, and why?