Write a program that keeps track of students' grades for 5 tests. You will use 3...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that keeps track of students' grades for 5 tests. You will use 3 arrays. The first array will be an array of integers that has the values 1 to 5 assigned to its elements. The second array has the test score corresponding to the score of each test and has the following values: 75, 80, 77, 79, 82. The third array is an array of strings with the letter grade of each test. Write a program that: 1. Creates and declares each array and assigns the values 2. Prints a table with test number, scores and letter grades 3. Prints the highest score, the lowest score, the average and the final letter grade For example: Test Score Grade 1 75 C 2 80 B 3 77 C 79 C 5 82 B Your average is 78.6 Your highest score was 82 Your lowest score was 75 Your final grade is a C Be sure that your program calculates the solutions, so that it will run for different inputs for score. Write a program that keeps track of students' grades for 5 tests. You will use 3 arrays. The first array will be an array of integers that has the values 1 to 5 assigned to its elements. The second array has the test score corresponding to the score of each test and has the following values: 75, 80, 77, 79, 82. The third array is an array of strings with the letter grade of each test. Write a program that: 1. Creates and declares each array and assigns the values 2. Prints a table with test number, scores and letter grades 3. Prints the highest score, the lowest score, the average and the final letter grade For example: Test Score Grade 1 75 C 2 80 B 3 77 C 79 C 5 82 B Your average is 78.6 Your highest score was 82 Your lowest score was 75 Your final grade is a C Be sure that your program calculates the solutions, so that it will run for different inputs for score.
Expert Answer:
Answer rating: 100% (QA)
public class StudentGrades public static void mainString args 1 Creates and declares each array and ... View the full answer
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Posted Date:
Students also viewed these programming questions
-
An algorithm has been written in pseudocode to input some numbers. It only outputs any numbers that are greater than or equal to 100. The number 999 is not output and stops the algorithm. INPUT...
-
Microkernel operating systems aim to address perceived modularity and reliability issues in traditional "monolithic" operating systems. (i) Describe the typical architecture of a microkernel...
-
After 1 0 0 0 B . C . E . trade in Greece allowed for the accumulation of wealth by Kings Aristoi Farmers Foreigners
-
On July 1, 2011, Silver Stone Company purchased equipment for a cost of $450,000 with an expected useful life to 15 years and an anticipated residual value of $30,000. This is the company's only...
-
Gustave Orsen, an introductory accounting student, thinks that a double-entry accounting system means that each transaction is recorded twice. Is Gustave correct? Explain.
-
True or False. The derivation of system matrices involves the assembly of element matrices.
-
Lovvern Trophies makes and sells trophies it distributes to little league ballplayers. The company normally produces and sells between 8,000 and 14,000 trophies per year. The following cost data...
-
Radar Range Equation and Timing. A radar has the following design parameters: Pt = 6 kW Gt = 36 dB Fc = 5 GHz Noise Figure = 8 dB System Temperature = 290K PRF = 1500 Hz Bandwidth = 1 MHz Azimuth...
-
Stan Mayfield, CEO of Mayfield Software, is interested in acquiring a used aircraft to facilitate business travel (primarily for travel between Melbourne and Sydney). The aeroplane he is interested...
-
A golfer hits a ball, giving it a maximum height of 26 m. If the ball lands 149 m away at the level from which he hit it, how long does it take for the ball to reach maximum height. (Neglect air...
-
A train with a maximum speed of 105 km/h has an acceleration rate of 0.50 m/s 2 and a deceleration rate of 0.61 m/s 2 . If the train takes 50 s to slow down from maximum speed to a complete stop, how...
-
A 6 0 0 mm long pump shaft of stainless steel ( k = 2 0 W / mK ) is 3 0 mm in diameter. The heat transfer coefficient for the outside surface of the shaft to the cooling air at 3 0 \ deg C is 3 0 W /...
-
1 5 . A cone of base 5 0 mm diameter & axis 6 0 mm long rests with its base on HP . It is cut by a section plane perpendicular to VP so that the true shape of the section is a parabola of maximum...
-
A new fuel being developed for use in internal combustion engines consists of ( 1 ) / ( 2 ) methanol and ( 1 ) / ( 2 ) butene - 1 by mole. Calculate: ( a ) Stoichiometric AF . [ kga / kg ] ( b ) AKI.
-
Read the case Youth and entrepreneurship in the United Arab Emirates The study reported three categories of factors impacting youth entrepreneurship in the UAE. These include: 1) Push VS. Pull...
-
1) Predict the organicproduct formed when BzCl reacts with cyclohexanol. BzCl = benzoylchloride. 2) Provide the majororganic product of the reaction below. 3) Draw the structureof the product formed...
-
Using the demand and cost curves of an individual firm in oligopoly, demonstrate the effects of each of the following: a. The Clean Air Act b. The Nutrition and Labeling Act c. A ban on smoking...
-
Which of the three types of government policiesantitrust, social regulation, and economic regulationis the basis for each of the following? a. Beautician education standards b. Certified Public...
-
Explain why a market in which broadcast licenses can be purchased might be more efficient than having the FCC assign licenses on some basis designed by the FCC.
Study smarter with the SolutionInn App