Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

// i need help with this program below. i have to organize the top scores that are listen within the program, the scores are in

// i need help with this program below. i have to organize the top scores that are listen within the program, the scores are in the line that reads int [] grades = {78, 88, 97, 75, 82, 63, 91}; it has to be written in java programming and the software that im using is dr java

public class Scores { private int [] scores; Scores(int [] grades) { scores = new int[grades.length]; for (int i = 0; i < grades.length; i++) { scores[i] = grades[i]; } } public int getTopScore() { // Your code here } } public class TopScore { public static void main(String [] args) { int [] grades = {78, 88, 97, 75, 82, 63, 91}; Scores sc = new Scores(grades); int top = sc.getTopScore(); System.out.println("Top score is " + top); } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Provide synonyms for categorical data.

Answered: 1 week ago

Question

To find integral of sin(logx) .

Answered: 1 week ago