Hey guys. Im in my first week of class for Java OOP. This is what my first assignment looks like
**1. Ask from the user: how many students take CompSci in summer, and store that number in a variable.** **2. Ask the user to input the name and mark of each student (marks are from 100), and store names and marks in two separate arrays.** For example John 100 Kathy 86 Kevin 90 Colin 93 **3. Next, compute the average of the marks, and print it. Also find the minimum and the maximum mark and print the name of the person who got the min. and max. mark among students.** For example Avg is 86.55 Max is 100 (John) Min is 86 (Kathy) **4. Next, sort the list of students based on their marks from the maximum mark to the minimum mark, and print in the output the sorted list.** For example Marks in sorted order : John 100 Colin 93 Kevin 90 Kathy 86 **5. Finally, print the total number of students who got :** marks greater than 90 marks between 80 and 89 marks between 70 and 79 marks less than 70
I really need some help with this. I would really appreciate if someone can show me how this should be done. I just need some thing to read to see how the code works.
Edited 4 Years Ago by RedSpyder