Write a Java program as follows: 1. Prompt user for the number of students 2. For...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Java program as follows: 1. Prompt user for the number of students 2. For each student have user enter student's name and exam score (0-100) 3. Store names and scores in separate arrays 4. Code method which gets integer array and uses for-loop to find the index of the smallest value 5. Code method which gets integer array and uses for-loop to find the index of the largest value 6. Output all students with their scores 7. Output which student has highest exam score and which student has lowest exam score Make sure your Java program is using the recommended style such as: ● Javadoc comment up front with your name as author, date, and brief purpose of the program Comments for variables and blocks of code to describe major functionality Meaningful variable names and prompts ● ● ● ● ● Identifiers are written in upper CamelCase Class name starts with upper case letter and variables in lower case letter Constants are written in All Capitals Use proper spacing and empty lines to make code human readable Capture execution: You should capture and label screen capture associated with compiling your code, and running a test case. Here is a sample run: RUN: How many students do you want to enter: 3 Student 1: Enter student's name: John Smith Enter student's score (0-100): 80 Student 2: Jane Cebula Enter student's name: Enter student's score (0-100): 98 Student 3: Enter student's name: Enter student's score (0-100): 75 Ginny Jones John Smith Jane Cebula Ginny Jones 80 98 75 Write a Java program as follows: 1. Prompt user for the number of students 2. For each student have user enter student's name and exam score (0-100) 3. Store names and scores in separate arrays 4. Code method which gets integer array and uses for-loop to find the index of the smallest value 5. Code method which gets integer array and uses for-loop to find the index of the largest value 6. Output all students with their scores 7. Output which student has highest exam score and which student has lowest exam score Make sure your Java program is using the recommended style such as: ● Javadoc comment up front with your name as author, date, and brief purpose of the program Comments for variables and blocks of code to describe major functionality Meaningful variable names and prompts ● ● ● ● ● Identifiers are written in upper CamelCase Class name starts with upper case letter and variables in lower case letter Constants are written in All Capitals Use proper spacing and empty lines to make code human readable Capture execution: You should capture and label screen capture associated with compiling your code, and running a test case. Here is a sample run: RUN: How many students do you want to enter: 3 Student 1: Enter student's name: John Smith Enter student's score (0-100): 80 Student 2: Jane Cebula Enter student's name: Enter student's score (0-100): 98 Student 3: Enter student's name: Enter student's score (0-100): 75 Ginny Jones John Smith Jane Cebula Ginny Jones 80 98 75
Expert Answer:
Answer rating: 100% (QA)
Based on the instructions provided in the image youve shared youre looking to create a Java program that performs the following tasks 1 Prompt the use... View the full answer
Related Book For
College Algebra With Modeling And Visualization
ISBN: 9780134418049
6th Edition
Authors: Gary Rockswold
Posted Date:
Students also viewed these programming questions
-
Question 1 Nighy Ltd is a company that manufactures a ready-mixed fence post compound called "Fastset" for sale to large trade suppliers and DIY retailers. Fence post compound sets in around 10...
-
What would the resulting Sharpe Ratio for a portfolio formed, according to the Treynor-Black Model, by combining the market portfolio (Sharpe Ratio of 0.52) with a security that has alpha of 1.40%...
-
Two-dimensional array operations: Movie Ratings program ** You have recently collected reviews from four movie reviewers where the reviewers are numbered 1-4. Each reviewer has rated six movies where...
-
The following exercises are of mixed variety. Factor each polynomial. x 2 - 2xy + y 2 - 4
-
You are the in-charge accountant on the audit of Amazing Inc. (AI). It is March 25, 2016, and your firm is part way through the 2015 audit. You are currently assigned to work on various sections...
-
For the following exercises, find the x- and y-intercepts of each equation. h(x) = 3x 5
-
Why is involvement of top management important to the success of a corporate environmental management and accounting system?
-
Whitmore Company issued $500,000 of 5-year, 8% bonds at 97 on January 1, 2019. The bonds pay interest annually. Instructions (a) (1) Prepare the journal entry to record the issuance of the bonds. (2)...
-
> The following figures represent the amount that can be produced with a fixed amount of factor inputs. Panama Honduras Bananas 100 160 Sugarcane 50 40 A. Which country has the absolute advantage in...
-
The Foxridge Investment Group buys and sells rental income properties in southwest Virginia. Bill Hunter, president of Foxridge, has asked for your assistance in analyzing a small apartment building...
-
Create an ERD for a hypothetical sock manufacturer you are working at. ( Include 4 entities)
-
How does the structure-property relationship in advanced materials like zeolites and metal-organic frameworks (MOFs) impact their application in adsorption and separation processes? What role does...
-
Ayayai Company purchased a new machine on September 1, 2022, at a cost of $131,000. The company estimated that the machine will have a salvage value of $13,000. The machine is expected to be used for...
-
a . Winston Clinic is evaluating a project that costs $ 5 2 , 1 2 5 and has expected net cash flows of $ 1 2 , 0 0 0 per year for eight years. The first inflow occurs one year after the cost outflow,...
-
The frequency, f, of a sound wave can be calculated using the formula f = , where c is the speed of sound in air and A is the wavelength, or distance between two crests of the sound wave. If a...
-
16. (a) You are making red velvet cupcakes that are conical in shape. One inverted cone tin is 10 mm with a radius of 2 mm. How fast is the batter rising when the depth of poured batter is 5 mm? The...
-
The following graph represents variation of vapour pressure with composition of liquid and vapours of binary liquid mixture. The graph is plotted at constant temperature. Which of the following...
-
An educational researcher devised a wooden toy assembly project to test learning in 6-year-olds. The time in seconds to assemble the project was noted, and the toy was disassembled out of the childs...
-
Complete the following for the recursively defined sequence. (a) Find the first four terms. (b) Graph these terms. a = 2a-1: a = 1
-
If possible, find AB and BA. -1 A = 2 -1 5 6 1-4 B-[133] 7 -7 =
-
Complete the following (a) Write the system in the form AX= B. (b) Solve the linear system by computing X = A -1 B. x - 2y + z = 2x + y + 2z = y + z = 0 10 3
-
The Dorans Dairy's principal activity is buying milk from dairy farmers, processing the milk, and delivering the milk to retail customers. You are engaged in auditing the retail accounts receivable...
-
The following is a list of audit procedures that might be applied to sales transactions. Identify those procedures that would be applied using audit sampling a. Scan the accounting records to...
-
An auditor has analyzed additions to property and equipment for the year as follows: The auditor plans to substantiate all the additions above $10,000 and rely on analytical procedures for the...
Study smarter with the SolutionInn App