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...
-
Suppose General Mills is considering discontinuing its organic cereal product line. Assume that during the past year, the organic cereal's product line income statement showed the following: Sales ....
-
In problem, analyze each polynomial function by following Steps 1 through 6. f(x) = -1/2 (x + 4)(x - 1) 3
-
Mrs. Palsgraf was waiting for a train on a platform of a railroad. When a different train came into the station, two men ran to get on that train before it left the station. While one of the men...
-
Adani Inc. sells goods to Geo Company for $11,000 on January 2, 2012, with payment due in 12 months. The fair value of the goods at the date of sale is $10,000. Prepare the journal entry to record...
-
(2) To solve a nonlinear BVP Fi(yj) = 0 using Newton's method, we make a guess for y; and then iterate until the norm of the residual ||Fi|| e. Set (k+1) yj = (k) = y; " + Ayj, k = 0, 1, 2, ... where...
-
To what extent has the United States approached the implementation of Ward Connerly's "Racial Privacy Initiative"?
-
For each event, explain whether planned investment spending or unplanned inventory investment will change and in what direction. a. An unexpected increase in consumer spending b. A sharp rise in the...
-
Suppose the government imposes an import quota rather than a tariff on butter. What quota limit would generate the same quantity of imports as a tariff of $0.50 per pound?
-
Suppose that problems in the capital markets make consumers unable either to borrow or to put money aside for future use. What implication does this have for the effects of expected future disposable...
-
How could a researcher apply the comparability index in a research project to evaluate the transition from national GAAP to IFRS Standards?
-
Explain the difference between intermediate and investment goods. Are intermediate and investment goods included in GDP? Explain.
-
Three identical SRS open-chain arms are grasping a common object, as shown in Figure 1. spherical joint revolute joint Figure 1 Three cooperating SRS arms grasping a common object. (a) Find the...
-
During the month, services performed for customers on account amounted to $7,500 and collections from customers in payment of their accounts totaled $6,000. At the end of the month, the Accounts...
-
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...
-
Consider a Lagrangian \(L^{\prime}=L+d f / d t\), where the Lagrangian is \(L=\) \(L\left(q_{k}, \dot{q}_{k}, tight)\), and the function \(f=f\left(q_{k}, tight)\). (a) Show that...
-
Show that the function \(L^{\prime}\) given in the preceding problem must obey Lagrange's equations if \(L\) does, directly from the principle of stationary action. Lagrange's equations do not have...
-
In Example 4.8 we analyzed the case of a bead on a rotating parabolic wire. The energy of the bead was not conserved, but the Hamiltonian was: There is an equilibrium point at \(r=0\) which is...
Study smarter with the SolutionInn App