Help with Java Programing please

Help With Java Programing Please

Answers

Answer 1

The program to convey the information will be shown below.

How to explain the program

The program will be:

import java.util.Scanner;

public class Student {

   public static void main(String[] args) {

       Scanner scanner = new Scanner(System.in);

       System.out.print("Please provide the student's name: ");

       String studentName = scanner.nextLine();

       int[] grades = new int[20];

       int gradeCount = 0;

       int grade;

       do {

           try {

               System.out.print("Enter a grade from 0 to 100 (-1 to quit): ");

               grade = scanner.nextInt();

               if (grade >=0 && grade <= 100) {

                   grades[gradeCount] = grade;

                   gradeCount++;

               } else if (grade != -1) {

                   System.out.println("This is an invalid grade, kindly enter a number between 0 and 100 or -1 to exit.");

               }

           } catch (Exception e) {

               System.out.println("There was an error with a type mismatch!");

               break;

           }

       } while (grade >= 0 && gradeCount <20);

       Grades studentGrades = new Grades(studentName);

       int highestGrade = studentGrades.getHighestGrade(grades, gradeCount);

       System.out.println(studentGrades.getStudentName() + "'s highest grade is " + highestGrade);

   }

}

Learn more about Program on

https://brainly.com/question/26642771

#SPJ1


Related Questions

Other Questions
A decrease in the rate of interest, other things being equal, will cause a: a. movement upward along the investment demand curve. b. movement downward along the investment demand curve. c. leftward shift of the investment demand curve. d. rightward shift of the investment demand curve. No two people will share the exact meaning of a message because of _______. Group of answer choices Channel Capacity Attention Energy Feedback skills Frame of Reference When Vermont Syrups advertises its syrup products as better and healthier than the syrup products of Maple Goodness, Vermont Syrups is demonstrating When the measure being made consists of judgments or ratings of multiple observers, the degree of agreement among observers can be established by using a statistical measure of: Rearranging the data on the hard drive so all files are stored in contiguous locations is called ____. One British pound can be purchased for $1.90. What is the exchange rate in terms of pounds per dollar? aA company currently producing 10 air conditioners each day has daily total costs of $1,500. Producing an additional air conditioner will increases costs by $250 daily. What are the total daily costs for the firm if they produce the A taxon that includes only birds and bats, two clades of vertebrates capable of flight, is considered ____. Spies R Us, a US company, sells surveillance equipment. Fearing that other countries might use the equipment to spy on the US, Congress imposes a tax on the equipment to make it less attractive to foreign buyers. This export tax is Group of answer choices The process whereby a product formerly associated with a specific ethnic group is detached from its roots and marketed to other subcultures is called ________. warming de-ethnicization acculturation de-culturization One of Diamond W employees notices that in her paycheck the company has paid her too much. She is pondering about whether to report this issue or not. This is an example of an ethical dilemma. True False The average height of students at UH from an SRS of 11 students gave a standard deviation of 3.0 feet. Construct a 95% confidence interval for the standard deviation of the height of students at UH. Assume normality for the data. a) (2.096, 5.265) b) (1.596, 6.265) c) (7.096, 8.265) d) (1.096, 8.265) e) (4.096, 11.265) f) None of the above How much force is required to hold a 7.5- cm -diameter hose delivering 400 L/min through a 0.76- cm -diameter nozzle Assume all angles to be exact. Light passes from a crown glass container into water.Will the angle of refraction be greater than, equal to, or less than the angle of incidence How much energy (in kilojoules) is required to convert 180 mL of diethyl ether at its boiling point from liquid to vapor if its density is 0.7138 g/mL 3. The makings of a good currencyAt first, it might seem that valuable commodities like cattle or lead bars might be good forms of money. What makes paper money preferable to these alternatives A television commercial for an apparel brand urges viewers to call its toll-free number to place an order, immediately. The commercial announces a free gift hamper to consumers who place an order before midnight. The apparel brand is making use of A midlatitude cyclone forms in western Canada, and very rapidly moves through the Dakotas and passes over the Great Lakes region, bringing very cold temperatures with it. This storm would probably be called a(an): low's companies, a home improvement store chain, reported the following summarized figures: low's companies income statement years ended may 31, 2024 and 2023 20242023 net sales revenue$46,500 $42,900 cost of goods sold20,80021,400 interest expense200140 all other expenses6,9007,800 net income$18,600 $13,560. low's companies balance sheet may 31, 2024 and 2023 assetsliabilities 2024202320242023 cash$2,500 $1,300 total current liabilities$24,000 $13,300 short-term investments26,00012,000long-term liabilities12,30011,600 accounts receivable7,6005,400total liabilities36,30024,900 merchandise inventory7,3008,200 stockholders' equity other current assets11,0001,700common stock13,00013,000 total current assets54,40028,600retained earnings40,10014,700 all other assets35,00024,000total equity53,10027,700 total assets$89,400 $52,600 total liabilities and equity$89,400 $52,600. low's has 30,000 common shares outstanding during 2024. 1. computer the debt ratio and the debt equity ratio at may 31, 2024, for low's companies. 2. is low's ability to pay its liabilities strong or weak. explain your reasoning. The _______ encourages the division of protected areas into zones with different purposes and levels of human impact.