Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Bring Home Laboratory Exercises

Java Array
Assignment No. 1 (30 points)
Write a program that will ask the user to enter his desire size of the array. Populate the array with all the elements.
Then solve the sum of all integer elements and the average.
For example:

Assignment No. 2: (50 points)


(Assign grades and remarks) Write a program that reads student grades, assigns remarks based on the following
scheme:
Grade is A if grade is >= 95;
Grade is B if grade is >= 90;
Grade is C if grade is >= 85;
Grade is D if grade is >= 75;
Grade is F if grade is < 75 .
The program prompts the user to enter the total number of students, then prompts the user to enter all of the
grades as whole numbers. Display the grades in integer form and the corresponding remarks.

For example:

Note: Deadline of submission will be on October 29, 2019 during your free time. Please be reminded that I will be
asking random questions with regards to the source code which will cover 50 percent of the total score.

You might also like