Question: Write a Java program that works with array variables. Program 1 : Create an int array that can hold 1 0 integer values, and initialize

Write a Java program that works with array variables.
Program 1:
Create an int array that can hold 10 integer values, and initialize them all to 0.
Then using a for loop, change the values so that the array has the values ranging from 10-
100 counting by 10s (10,20,30,40...90,100).
Then use another for loop to read through your array and display one array value per line
to the console.
Program 2:
Calculate the Average of Every Homework?
(Refer slides 47-48 in Week 5 PowerPoint Presentation Working with Arrays.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!