Machine Problem

 Create a simple program that will determine the rating of a score

 Rating

46 – 50 -> Excellent

41-45 -> Outstanding

36-40 -> Very Satisfactory

31 – 35  -> Satisfactory

Other values -> Out of rating

 Output

Enter Score : 45

Your Score is 45 and equivalent rating is Outstanding.

 I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Program Listing

 // rating_score.java
  // Author : Jake Rodriguez Pomperada, MAED-IT, MIT
  // October 14, 2021   6:32 PM  Thursday
  // www.jakerpomperada.blogspot.com  and www.jakerpomperada.com
  // jakerpomperada@gmail.com
  // Bacolod City, Negros Occidental Philippines.
 
 // Machine Problem
 // Create a simple program that will determine the rating of a score

 // Rating

// 46 - 50 -> Excellent

// 41-45 -> Outstanding

// 36-40 -> Very Satisfactory

// 31 - 35  -> Satisfactory

// Other values -> Out of rating

// Output

// Enter Score : 45

// Your Score is 45 and equivalent rating is Outstanding.
 
 import java.util.Scanner;
 
public class rating_score {
    
         
 public static void main(String[] args) {

     Scanner scan = new Scanner(System.in);

  System.out.println("\n");
  System.out.print("\tRating of a Score in Java");
  System.out.println("\n");
  System.out.print("\tEnter Score :");

  int score = scan.nextInt();
   
     System.out.println();

        if(score >= 46  && score <= 50){
            System.out.println("\tYour Score is " + score + " and equivalent rating is Excellent.");
        }else if (score >= 41  && score <= 45){
            System.out.println("\tYour Score is " + score + " and equivalent rating is OutStanding.");
        }else if (score >= 36 && score <= 40) {
            System.out.println("\tYour Score is " + score + " and equivalent rating is Very Satisfactory.");
        }else if (score >= 31 && score <= 35){
            System.out.println("\tYour Score is " + score + " and equivalent rating is Satisfactory.");
            
        }else {
            System.out.println("\tOut of Rating. Please Try Again.");
                 } 
  
   System.out.println("\n");
   System.out.print("\tEND OF PROGRAM");
   System.out.println("\n");
  
 }
}



Leave a Reply

Your email address will not be published.