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:
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
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)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fcd4867d4-8ed0-437f-b40f-72981102d206%2F8a5865d1-4c33-4590-beb8-9e6d27b9e5c8%2F2d2g6et_processed.jpeg&w=3840&q=75)
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)

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education