Untitled

 avatar
unknown
java
a month ago
1.1 kB
7
Indexable
import java.util.Scanner;
public class ProgramSummary{
    public static void main(String[] args){
      Scanner scnr = new Scanner(System.in);
      System.out.printf("%-14s%-14s%-14s%-14s%-14s\n"," ","Bronze", "Silver", "Gold", "Platinum");
      System.out.printf("%-14s%-14s%-14s%-14s%-14s\n\n","Score Range","500 - 999", "1000 - 1999", "2000 - 2999","3000 +");
      System.out.println("Please enter the user's score:");
      int score = scnr.nextInt();
      if (score>=500 && score<=999) {
         System.out.println("Congratulations you have made it into the Bronze!!!");
      }
      else if (score>=1000 && score<=1999) {
         System.out.println("Congratulations you have made it into the Silver!!!");
      }
      else if (score>=2000 && score<=2999) {
         System.out.println("Congratulations you have made it into the Gold!!!");
      }
      else if (score>=3000) {
         System.out.println("Congratulations you have made it into the Platinum!!!");
      }
      else {
         System.out.println("You have not yet made it into a league");
      }
    }
}
Editor is loading...
Leave a Comment