Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Scholarship {
- public static void main(String[] args){
- Scanner sc = new Scanner(System.in);
- double incomeInLeva = Double.parseDouble(sc.nextLine());
- double evaluation = Double.parseDouble(sc.nextLine());
- double minimalWage = Double.parseDouble(sc.nextLine());
- if (incomeInLeva > minimalWage) {
- System.out.println("You cannot get a scholarship!");
- }if (evaluation >= 5.50){
- double excellentScholarship = evaluation * 25;
- System.out.printf("You get a scholarship for excellent result %.0f BGN", excellentScholarship);
- }else if (incomeInLeva < minimalWage){
- double scholarship = minimalWage * 0.35;
- System.out.printf("You get a Social scholarship %.0f BGN", scholarship);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement