You are on page 1of 1

Your answer must be as follows

1. Data structure
2. Analysis with draw
a. Input
b. Processing
c. Output
3. Code
a. Using while loop
b. Using for loop
Q1. Solve just three questions
1. Write a Java program to sum values of an array.

2. Write a Java program to calculate the average value of array elements

3. Write a Java program to test if an array contains a specific value


4. Write a Java program to find the index of an array element.

5. Write a Java program to find smallest and second smallest elements of a


given array.

2. Convert the following UML to code

You might also like