Method 1 - displayTitle A method that creates a String object in memory to hold the text “Computer Hardware Graphics Quality Recommendation Tool” and displays it Method 2 – getResolutionString A method that accepts an integer value (1, 2, 3, or 4) that denotes the monitor resolution.  The method should return the appropriate String representation of the monitor resolution.  For example, if the method is passed an integer value of 1, it should return a String with a value of “1280 x 720”.  (See Step 4 of Project 1) Method 3 – getMultiplierValue A method that accepts an integer value (1, 2, 3, or 4) that denotes the monitor resolution and returns the appropriate “multiplier” value.  (See Step 5 of Project 1) Method 4 - calculatePerformanceScore A method that accepts the GPU clock speed, CPU clock speed, the number of cores, and the multiplier value, and calculates and returns the performance score.  (See Step 6 of Project 1) Method 5 – getRecommendedQuality A method that accepts a performance score as an argument and returns the recommended graphics quality.  (See Step 7 of Project 1) Method 6 - displayInformation A void method that prints out the information for a single computer.  The output should look exactly the same as the output for Project 2.  The method should accept only the arguments necessary to print out the information.  (See Step 9 of Project 1) Each of the above methods should match the naming and parameter requirements exactly.  Do not rename the method, or add/remove arguments to the method.  At the end of the output, the program should display the highest and lowest performance score. The code that you submit should be thoroughly documented with comments where appropriate (this includes documentation for each method).

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

Instructions:

IMPORTANT: This is a continuation of the previous part of the project and assumes that you are starting with code that fulfills all requirements from that part of the project.

Modify the your code from the previous part of the project to make it modular.

In addition to the main method, your code must include the following static methods:

Method 1 - displayTitle

A method that creates a String object in memory to hold the text “Computer Hardware Graphics Quality Recommendation Tool” and displays it

Method 2 – getResolutionString

A method that accepts an integer value (1, 2, 3, or 4) that denotes the monitor resolution.  The method should return the appropriate String representation of the monitor resolution.  For example, if the method is passed an integer value of 1, it should return a String with a value of “1280 x 720”.  (See Step 4 of Project 1)

Method 3 – getMultiplierValue

A method that accepts an integer value (1, 2, 3, or 4) that denotes the monitor resolution and returns the appropriate “multiplier” value.  (See Step 5 of Project 1)

Method 4 - calculatePerformanceScore

A method that accepts the GPU clock speed, CPU clock speed, the number of cores, and the multiplier value, and calculates and returns the performance score.  (See Step 6 of Project 1)

Method 5 – getRecommendedQuality

A method that accepts a performance score as an argument and returns the recommended graphics quality.  (See Step 7 of Project 1)

Method 6 - displayInformation

A void method that prints out the information for a single computer.  The output should look exactly the same as the output for Project 2.  The method should accept only the arguments necessary to print out the information.  (See Step 9 of Project 1)

Each of the above methods should match the naming and parameter requirements exactly.  Do not rename the method, or add/remove arguments to the method. 

At the end of the output, the program should display the highest and lowest performance score.

The code that you submit should be thoroughly documented with comments where appropriate (this includes documentation for each method).

Sample Input and Output (user input is in bold) - The output of your program should match the formatting and spacing exactly as shown

How many computers are being processed? 3

 

Computer Hardware Graphics Quality Recommendation Tool

 

Please enter the clock speed (in Megahertz) of your graphics card: 1000

Please enter the clock speed (in Megahertz) of your processor: 3000

Please enter the number of cores of your processor: 4

What is the resolution of your monitor?

                1. 1280 x 720

                2. 1920 x 1080

                3. 2560 x 1440

                4. 3840 x 2160

Please select from the options above: 1

 

GPU Clock Speed: 1000 MHz

CPU Clock Speed: 3000 MHz

Number of cores: 4

Monitor Resolution: 1280 x 720

Performance Score: 17,000.000

Recommended Graphics Quality: High

 

Please enter the clock speed (in Megahertz) of your graphics card: 1250

Please enter the clock speed (in Megahertz) of your processor: 3200

Please enter the number of cores of your processor: 4

What is the resolution of your monitor?

                1. 1280 x 720

                2. 1920 x 1080

                3. 2560 x 1440

                4. 3840 x 2160

Please select from the options above: 3

 

GPU Clock Speed: 1250 MHz

CPU Clock Speed: 3200 MHz

Number of cores: 4

Monitor Resolution: 2560 x 1440

Performance Score: 10,477.500

Recommended Graphics Quality: Unable to Play

 

Please enter the clock speed (in Megahertz) of your graphics card: 1800

Please enter the clock speed (in Megahertz) of your processor: 4300

Please enter the number of cores of your processor: 4

What is the resolution of your monitor?

                1. 1280 x 720

                2. 1920 x 1080

                3. 2560 x 1440

                4. 3840 x 2160

Please select from the options above: 2

 

GPU Clock Speed: 1800 MHz

CPU Clock Speed: 4300 MHz

Number of cores: 4

Monitor Resolution: 1920 x 1080

Performance Score: 19,650.000

Recommended Graphics Quality: Ultra

 

The highest performance score was: 19,650.000

The lowest performance score was: 10,477.500

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Methods of StringBuilder class
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