MOOC零基础学习Java 信号报告

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MOOC零基础学习Java 信号报告相关的知识,希望对你有一定的参考价值。

import java.util.Scanner;

public class report {

public static void main(String[] args) {
String[] s={"Faint signals, barely perceptible",
"Very weak signals",
"Weak signals",
"Fair signals",
"Fairly good signals",
"Good signals",
"Moderately strong signals",
"Strong signals",
"Extremely strong signals"};
String[] r={"unreadable",
"barely readable, occasional words distinguishable",
"readable with considerable difficulty",
"readable with practically no difficulty",
"perfectly readable"};
String rs="";
int i;
Scanner in =new Scanner(System.in);
i=in.nextInt();
rs=s[i%10-1]+", "+r[i/10-1]+".";
System.out.println(rs);
}
}

























以上是关于MOOC零基础学习Java 信号报告的主要内容,如果未能解决你的问题,请参考以下文章

MOOC零基础学习Java 温度转换

MOOC零基础学习Java 奇偶个数

MOOC零基础学习Java 时间转换

零基础学习Java语言——2判断

零基础学习Java语言——1计算

中国MOOC_零基础学Java语言_第5周 数组