JAVA 0.8 Scholarship---93tochki
import java.util.Scanner;
public class zad8UPR {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double dohod = Double.parseDouble(scanner.nextLine());
double sredenUspeh = Double.parseDouble(scanner.nextLine());
double minRabotnaZaplata = Double.parseDouble(scanner.nextLine());
if(sredenUspeh>=4.50&&(sredenUspeh<5.50)){
if(dohod<=minRabotnaZaplata){
double razmer = minRabotnaZaplata * 0.35;
System.out.printf("You get a Social scholarship %.0f BGN", razmer);
}else{
System.out.println("You cannot get a scholarship!");
}
}else if(sredenUspeh>=5.50){
double razmer = sredenUspeh*25;
System.out.printf("You get a scholarship for excellent results %.0f BGN",razmer);
}else{
System.out.println("You cannot get a scholarship!");
}
}
}
Opitah i po drug nachin s sravnqvaneto na po-golqmata stipendiq..no mi dava 81tochki...???