Average and the letter grade

Assignment Help Basic Computer Science
Reference no: EM131808570

Below is the code that I have all that I got is my name in the output. According to the instructions I am supposed to click on RUN from the menu bar. I have debug the code but all that I still getting is the print of my name. I need to get the average and the letter grade.

import static java.lang.System.out;

import java.util.Scanner;

public class AverageGrade {

public static void main(String[] args) {

double TestScore1;

double TestScore2;

double TestScore3;

String name1;

Scanner Keyboard = new Scanner(System.in);

System.out.print("Cesar");

name1 = Keyboard.nextLine();

System.out.println(92);

TestScore1 = Keyboard.nextInt();

System.out.println(75);

TestScore2 = Keyboard.nextInt();

System.out.println(68);

TestScore3 = Keyboard.nextInt();

double average = ((TestScore1 + TestScore2 + TestScore3)/3);

out.println(name1);

out.println("The average score of the 3 tests is: " + average);

if (average>90)

{

System.out.println("You got an A");

}

else if (average>=80)

{

System.out.println("You got a B");

}

else if (average>=70)

{

System.out.println("You got a C");

}

else if (average>=60)

{

System.out.println("You got a D");

}

else if (average<60)

{

System.out.println("You got an F");

}

}

}

Reference no: EM131808570

Questions Cloud

What would be the total amount of current assets : Equipment, $140,000; Accumulated Depreciation-Equipment, $40,000. What would be the total amount of Current Assets for this Balance Sheet
Factors that play important role in approach : Discuss all possible factors that play important role in this approach. What is user role in this process?
Identify one short-term personal development goal : Identify one (1) short-term (meaning within the next 12 months or sooner) personal development goal you would like to achieve.
Desirable characteristic in secure data : Explain the concept of simplicity as a desirable characteristic in secure data center design and construction including the use of supporting examples.
Average and the letter grade : I have debug the code but all that I still getting is the print of my name. I need to get the average and the letter grade.
Analyze the impact of osha in modern organizations : Analyze the impact of OSHA in modern organizations. What does the HRM professional need to know about OSHA?
Prepare a schedule of cash payments for selling expenses : All other expenses are paid in the month in which they are incurred. Prepare a schedule of cash payments for selling and administrative expenses
The role of a systems analyst : Determine the qualifications you must have to become a system analyst.
Difference between a unilateral and a bilateral contract : What is the difference between a unilateral and a bilateral contract ? Explain the concept of promissory estoppels.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What computations would reflect this behavior

Assume that the channel is fast but process Q is significantly slower than P. What computation would reflect this behavior? Give examples. Explain.

  Memories as used in a computer system

State the purpose of each of the following memories as used in a computer system

  Find the error in the pseudocode

Find the error in the pseudocode. Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an object in free fall:

  Display a two-dimensional, gray-scale cloud scene

The light and dark regions of the clouds are to be modeled using points of varying sizes and inter point spacing. (For example, a very light region can be modeled with small, widely spaced, light-gray points. Similarly, a dark region can be modele..

  Successful execution of the plan

After the SAP has been designed, it is time to develop all the supporting materials needed for a successful execution of the plan. During the development phase, it is not only essential to take a close look at the list of identified security topic..

  How can a clustering algorithm be modified

additional user-specified constraints such as that each ATM should serve at least 10,000 households. How can a clustering algorithm such as k-means be modified for quality clustering under both constraints?

  Graphical user interface and a commandline interface

1. Give two differences between a Graphical User Interface (GUI) and a Commandline Interface.

  Explain the open systems interconnection protocol model

1.  Explain the Open Systems Interconnection protocol model. and references with it. 2.  for the network layer of the OSI, what is happening there??

  How a computer program might use this graph to play nim

Discuss how a computer program might use this graph to play Nim.

  Does the above relation have a potential candidate key

Does the above relation have a potential candidate key

  Why can qc be considered part of qa

According to the IEEE definition of SQA, quality control (QC) is not equated with quality assurance (QA).

  Specific example of technology

Take a specific example of technology and explain how these two have been or might be combined.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd