Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Scholarships {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. double incomInLeva = Double.parseDouble(scanner.nextLine());
  7. double midalSucses = Double.parseDouble(scanner.nextLine());
  8. double minLeva = Double.parseDouble(scanner.nextLine());
  9.  
  10. double socialMany = incomInLeva * 0.35;
  11. double grade = midalSucses * 25;
  12.  
  13. if (midalSucses > 5.5) {
  14. System.out.printf("You cannot get a scholarship!");
  15. } else {
  16. System.out.printf("You get a scholarship for excellent results BGN", grade);
  17.  
  18. if (minLeva < incomInLeva * 0.35) {
  19. System.out.printf("You get a Social scholarship BGN", socialMany);
  20. } else {
  21. System.out.printf("You cannot get a scholarship");
  22. }
  23. }
  24.  
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement