[SOLVED] PRG 420 WEEK 4 INDIVIDUAL ASSIGNMENT CREATES AND ACCESSES AN ARRAY OF INTEGERS: For this assignment, you will apply what you learned in analyzing a simple Java™ program by writing your own Java™ program that creates and accesses an array of integers. The Java™ program you write should do the following:
- Create an array to hold 10 integers
- Ask the user for an integer. Note: This code has already been written for you.
- Populate the array. Note: The first element should be the integer input by the user. The second through tenth elements should each be the previous element + 100. For example, if the user inputs 10, the first array value should be 10, the second 110, the third 210, and so on.
[SOLVED] PRG 420 WEEK 4 INDIVIDUAL ASSIGNMENT CREATES AND ACCESSES AN ARRAY OF INTEGERS: Display the contents of the array on the screen in ascending index order.
Complete this assignment by doing the following:
- Download and unzip the linked Week Four Coding Assigment Zip File.
- Read each line of the file carefully, including the detailed instructions at the top.
- Add comments to the code by typing your name and the date in the multi-line comment header.
- Replace the following lines with Java™ code as directed in the file:
- LINE 1
- LINE 2
- LINE 3
- LINE 4
- LINE 5
- Comment each line of code you add to explain what you intend the code to do.
- Test and modify your Java™ program until it runs without errors and produces the results as described above.
[SOLVED] PRG 420 WEEK 4 INDIVIDUAL ASSIGNMENT CREATES AND ACCESSES AN ARRAY OF INTEGERS: Note: Refer to this week’s analyzing code assignment if you need help.
Submit your Java source (.java) code file using the Assignment Files tab.