Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me to check the error and show me how to fix it. thanks And this is Java program Charges.java G MenuExample.java & Proje

please help me to check the error and show me how to fix it. thanks

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

And this is Java program

Charges.java G MenuExample.java & Proje sages | GRASP Messages | Run To Interactions help.java:1: error: Cannot find symbol import java.util.scanner; symbol: class scanner location: package java.util o B e UE G help.java C:\Users\Thawng\Downloads -GRASP CSD (Java) File Edit View Build Project Settings Tools Window Help java.util.Scanner public class help public static void main(String[] args) //Values/constants int GPUspeed - 0; //To hold the user's GPU clock speed (in Megahurtz) int CPUspeed - 0; //To hold the user's CPU clock speed (in Megahurtz) int numCores - ; //To hold the number of cores in the user's CPU String menuChoice = ""; //To hold the user's menu choice String monitorRes - ""; //To hold the user's monitor resoltion String performanceScore = ""; String quality = ""; double multiplier = 0.; //Scanner object Scanner sc = new Scanner(System.in); System.out.println("Enter the clock speed (in Megahertz) of your graphics card (GPU)"); //This is an indicator of h GPUspeed = sc.nextInt(); System.out.println("Enter the clock speed (in Megahertz) of your processor (CPU)"); //This is an indicator of how CPUspeed = sc.nextInt(); System.out.println("Enter the number of cores that your processor (CPU) has"); //This is an indicator of how many numCores = sc.nextInt(); //Monitor resolution menu System.out.println("Monitor resolution menu"); System.out.println("1. 1280 x 720"); System.out.println("2. 1920 x 1080"); Project1_Thawng_Mung.java help.java 9 BankCharges.java 9 MenuExample.java DIO Start a web search DOLL G help.java C:\Users\Thawng\Downloads - GRASP CSD (Java) File Edit View Build Project Settings Tools Window Help //Monitor resolution menu System.out.println("Monitor resolution menu"); System.out.println("1. 1280 x 720"); System.out.println("2. 1920 x 1080"); System.out.println("3. 2560 x 1440"); System.out.println("4. 3840 x 2160"); System.out.print(" Please select one of the choices above: "); //Ask the user to choose the menuChoice = sc.next(); //Read the user's input for the munu selection 7/Assign the menu options to their values to enable the menu to funtion correctly if (menuChoice.equals("1")) { //If the user selects menu option one, the object "monit monitorRes = "1280 x 720"; else if (menuChoice.equals("2")) { //If the user selects menu option two, the object "monito monitorRes = "1920 x 1080"; // If the user selects menu option three, the object "mc else if (menuChoice.equals("3")) { monitorRes = "2560 x 1440"; else if (menuChoice.equals("4")) { //If the user selects menu option four, the object "mon monitores = "3840 x 2160"; //This segment will determine what the mulitplier object comes out to be if (menuChoice.equals("1")) { multiplier = 1; else if (menuChoice.equals("2")) { multiplier = .75; else if (menuChoice.equals("3")) { multiplier = .55; else if (menuChoice.equals("4")) { 1. MenuExample.java 1 9 Projecti_inawng mung.Java BankCharges.java 2006 Tot e Start weh search G help.java C:\Users\Thawng\Downloads -GRASP CSD (Java) File Edit View Build Project Settings Tools Window Help //This segment will determine what the mulitplier object comes out to be if (menuChoice.equals("1")) { multiplier = 1; else if (menuChoice.equals("2")) { multiplier = .75; else if (menuChoice.equals("3")) { multiplier = .55; else if (menuChoice.equals("4")) { multiplier = .35; Performance Score = (5 * user's GPU speed) + (number of cores * the user's CPU speed) * multiplier performance Score - ((5 * GPUspeed) + (numCores * CPUspeed)) * multiplier; //Print the results System.out.println("Performance Score: " + performanceScore); G MenuExample.java 1 G BankCharges.java Project1_Thawng_Mung.java Ecle blackboard.cpcc.edu/webapps/blackboard/content/listContent.jsp?course_id 120% ... - The Monitor Resolution - The Performance Score (formatted with a comma and to three decimal places) The Recommended Graphics Quality The code you submit should be thoroughly documented with comments where appropriate. Sample Input and Output (user input is in bold) 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: 2 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 Computer Hardware Graphics Quality Recommendation Tool GPU Clock Speed: 1000 MHz CPU Clock Speed: 3000 MHz Number of cores: 2 Monitor Resolution: 1280 x 720 Performance Score: 11,000.000 Recommended Graphics Quality: Unable to play o e S O G

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

2. What is the meaning and definition of Banking?

Answered: 1 week ago