Create a Java application in NetBeans called Lab07 that prompts the user to enter a length...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a Java application in NetBeans called "Lab07" that prompts the user to enter a length of an array, and then prompts the user to enter that number of scores. The program then prints the scores, the lowest, highest, average, number of A's, B's C's, D's, F's, and then prints the scores in descending order. Use the following method headers: // print scores public static void printScores (int[] array) // lowest score public static int lowest Score (int[] array) // highest score public static int highest Score (int[] array) // average score public static double averageScore (int[] array) // coun ount grades public static int countGrades (int[] array, char gradeType) // print descending scores public static void printDescendingScores (int[] array) Sample Java output: Enter the length of the array: 5 Enter 5 scores: 65 78 75 98 87 Printed scores: 65 78 75 98 87 Low: 65 High: 98 Avg: 80.6 A's: 1 B's: 1 C's: 2 D's: 1 F's: 0 Scores in descending order: 98 87 78 75 65 Activate W Go to Settings Create a Java application in NetBeans called "Lab07" that prompts the user to enter a length of an array, and then prompts the user to enter that number of scores. The program then prints the scores, the lowest, highest, average, number of A's, B's C's, D's, F's, and then prints the scores in descending order. Use the following method headers: // print scores public static void printScores (int[] array) // lowest score public static int lowest Score (int[] array) // highest score public static int highest Score (int[] array) // average score public static double averageScore (int[] array) // coun ount grades public static int countGrades (int[] array, char gradeType) // print descending scores public static void printDescendingScores (int[] array) Sample Java output: Enter the length of the array: 5 Enter 5 scores: 65 78 75 98 87 Printed scores: 65 78 75 98 87 Low: 65 High: 98 Avg: 80.6 A's: 1 B's: 1 C's: 2 D's: 1 F's: 0 Scores in descending order: 98 87 78 75 65 Activate W Go to Settings
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
The TTL field refers to the maximum amount of time a DNS server can cache the record. Most of the TTLs in this record were chosen to be 86400 seconds (1 day). What is the trade-off between choosing a...
-
96. A 66-year-old woman with a long history of heavy smoking presents to her doctor with complaints of shortness of breath and chronic coughing that has been present for about 2 years and has been...
-
Forst Manufacturing produces and sells oil filters for $3.30 each. A retailer has offered to purchase 20,000 oil filters for $1.55 per filter. Of the total manufacturing cost per filter of $1.95,...
-
What role does the decision made by an Ontario Court of Appeal judge have on a B.C Supreme Court judge?
-
Derive an expression for the relative displacement transmissibility, \(\frac{Z}{Y}\), where \(Z=X-Y\), for a damped single-degree-of-freedom system subjected to the base motion, \(y(t)=Y \sin \omega...
-
Bus and subway ridership for summer months in London, England, is believed to be tied heavily to the number of tourists visiting the city. During the past 12 years, the following data have been...
-
Grant has been working fulltime for ABC electric for the last 5 years as an Electrician. He has provided a recent paystub and a current letter of employment. While he does receive overtime...
-
Suppose that the two-dimensional vectors (X1, Y1), (X2, Y2), . . . , (Xn, Yn) form a random sample from a bivariate normal distribution for which the means of X and Y, the variances of X and Y , and...
-
Sarah starts in the blocks and reaches the 30 m mark in 3.78 seconds. What is her average acceleration from leaving the blocks to the 30 m mark?
-
Given the data on the US trade balance (known as net export) below:
-
Clear company manufactures vacuum cleaners. Specializing in the market niche of "entry-level" vacuum cleaners, it is studying the launch of a more efficient model (referenced T1200) Activity...
-
All answers to problem set questions must be typed so they can be reviewed by Turnitin. Please submit your completed problem set through Canvas using the instructions found on the syllabus. Problem 1...
-
Consider an economy with the following economic agents: -Households/Consumers who earn income from the factor market, pay taxes to the government. purchase goods and services from firms in the market...
-
What is the NPV of the following 11 projects at their hurdle rate? Project 1. Truck fleet expansion Heinz Klink proposed purchasing 100 new refrigerated tractor-trailer trucks, 50 each in 2021 and...
-
The marketing managers role in promotional strategy is critical to the success of the firm. From Exhibit 13.3 (The Elements of the Marketing Managers Role in Promotional Strategy) and Chapter 13...
-
Make an argument that Williams had a right to delay the closing until after August 1.
-
In put Stream is _________________. a. A child of Out put Stream b. An abstract class c. Used for screen output as opposed to file output d. A concrete class
-
a. Sunshine Seashore Supplies rents beach equipment to tourists. In previous chapters, you have developed a Rental class that holds equipment rental information. Now modify the Rental class as...
-
Write a program that prompts a user for two Strings and two integers. Send the two Strings to a generic method that sends them to another method to display, swaps their values, and then sends them to...
-
Which forecasting technique is more qualitative, the Delphi method or linear regression?
-
A road-paving crew required 8 hours to repave a 3-mile stretch of road, using \($5,000\) in materials. The crew consisted of three workers who each earn \($25\) an hour. Calculate a multifactor...
-
An automobile assembly plant produced 600 cars during a 5-day workweek. It then produced 500 cars the following week, although it only operated 4 days due to a national holiday. During which week was...
Study smarter with the SolutionInn App