read in student marks (double) from the user, determines the highest mark, then ranks students based on how their mark compares to the highest mark, and displays their mark and letter grade. Use the following system of subtracting the student's mark from the highest mark to determine their letter grade. ark mark 2 best - 10 mark 2 best - 20 mark 2 best - 30 mark 2 best - 40 otherwise rade A B C F - MAY write all your code for this question, along with the call for getNumsFromUser( ), de the main method. However, if you choose to write a method for this code and call it in the in method, you may use this header:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Q2.
Create a complete program that uses the getNumsFromUser() method in Q1 to
read in student marks (double) from the user, determines the highest mark, then ranks
students based on how their mark compares to the highest mark, and displays their mark
and letter grade. Use the following system of subtracting the student's mark from the highest
mark to determine their letter grade.
Mark
mark > best - 10
mark > best - 20
mark 2 best 30
mark 2 best - 40
otherwise
Grade
A
В
You MAY write all your code for this question, along with the call for getNumsFromUser( ),
inside the main method. However, if you choose to write a method for this code and call it in the
main method, you may use this header:
public static void showLetterGrades (double[] grades)
Transcribed Image Text:Q2. Create a complete program that uses the getNumsFromUser() method in Q1 to read in student marks (double) from the user, determines the highest mark, then ranks students based on how their mark compares to the highest mark, and displays their mark and letter grade. Use the following system of subtracting the student's mark from the highest mark to determine their letter grade. Mark mark > best - 10 mark > best - 20 mark 2 best 30 mark 2 best - 40 otherwise Grade A В You MAY write all your code for this question, along with the call for getNumsFromUser( ), inside the main method. However, if you choose to write a method for this code and call it in the main method, you may use this header: public static void showLetterGrades (double[] grades)
Sample run
Enter number of students: 4
Enter student grades: 67 93 55 78
Student 1 score is 670 and grade is C
Student 2 score is 93.0 and grade is A
Student 3 score is 55.0 and grade is D
Student 4 score is 78.0 and grade is B
Transcribed Image Text:Sample run Enter number of students: 4 Enter student grades: 67 93 55 78 Student 1 score is 670 and grade is C Student 2 score is 93.0 and grade is A Student 3 score is 55.0 and grade is D Student 4 score is 78.0 and grade is B
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education