Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package gradingapp;
- import java.util.Scanner;
- /**
- *
- * @author Jeffrey Eric Gutierrez @mariokart64.com
- */
- public class GradingApp {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner sc = new Scanner (System.in);
- System.out.println("Enter your score");
- double score = sc.nextDouble();
- if (score >= 90){
- System.out.println("Score is A");
- }
- else
- if(score >= 80 && score <90)
- System.out.println("Score is B");
- else
- if(score >=70 && score <80)
- System.out.println("Score is C");
- else
- if(score >=60 && score <70)
- System.out.println("Score is D");
- else
- if(score <60)
- System.out.println("Score is F");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement