Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Scholarship {
  3.     public static void main(String[] args){
  4.  
  5.  
  6.         Scanner sc = new Scanner(System.in);
  7.  
  8.         double incomeInLeva = Double.parseDouble(sc.nextLine());
  9.         double evaluation = Double.parseDouble(sc.nextLine());
  10.         double minimalWage = Double.parseDouble(sc.nextLine());
  11.  
  12.  
  13.         if (incomeInLeva > minimalWage) {
  14.             System.out.println("You cannot get a scholarship!");
  15.         }if (evaluation >= 5.50){
  16.             double excellentScholarship = evaluation * 25;
  17.             System.out.printf("You get a scholarship for excellent result %.0f BGN", excellentScholarship);
  18.  
  19.         }else if (incomeInLeva < minimalWage){
  20.             double scholarship = minimalWage * 0.35;
  21.             System.out.printf("You get a Social scholarship %.0f BGN", scholarship);
  22.  
  23.  
  24.  
  25.         }
  26.  
  27.  
  28.  
  29.  
  30.  
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement