package net.cw.lesson04;
import java.util.Scanner;
/**
- 功能:并列式评定成绩等级
- 作者:cw
- 日期:2019年3月21日
*/
public class JudgeScoreLevelParallel {
public static void main(String[] args) {
//声明部分
double score;
String level;
Scanner sc = new Scanner(System.in);
//输出部分
System.out.print("score = ");
score = sc.nextDouble();
//处理部分
if (score > 100){
level = "超出范围";
}
if (score >= 90 && score <= 100){
level = "优秀";
}
if (score >= 80 && score < 90){
level = "良好";
}
if (score >= 70 && score < 80){
level = "中等";
}
if (score >= 60 && score < 70){
level = "及格";
}
if (score >= 0 && score < 60){
level = "不及格";
}
if (score < 0){
level = "超出范围";
}
}
}