| 1. |
Write a program in java to input the marks of n students in the array marks[ ]. Now arrange the marks in descending order and display it. |
|
Answer» This is a Java Program to Accept the Marks of a STUDENT into a 1D Array and find TOTAL Marks and PERCENTAGE. A one-dimensional array is, essentially, a list of like-typed variables.Enter the number of subjects and then enter marks if students in all those subjects. Now we us for loop to calculate total marks of the student and hence divide it by the total number of subjects to get percentage marks.Here is the source code of the Java Program to Accept the Marks of a Student into a 1D Array and find Total Marks and Percentage. The Java program is successfully compiled and run on a Windows system. The program output is also shown below. MARK AS BRAINIST,THANK,RATE AND FOLLOW MEGOD WILL ALWAYS HELP YOU |
|