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).
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 “
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
Trending now
This is a popular solution!
Step by step
Solved in 2 steps