import java.util.Scanner;
public class TouchType
{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);
System.out.println("Enter a speed:");
int speed=input.nextInt();
if(speed>=15&speed<30)
System.out.println("The score is 10");
if(speed>=30)
System.out.println("The score is 15");
if(speed<15)
System.out.println("you have another chance to test on 4/15");
System.out.println("Enter a respeed:");
int respeed=input.nextInt();
if(respeed>15)
System.out.println("The score is 10");
int score1;
int score;
score1=(15-respeed)/2;
score=15-score1;
if(respeed<15)
System.out.println("The score is"+score);
}
}
第4周作业-打字成绩判断程序
最新推荐文章于 2021-12-08 14:52:10 发布