Java入门练习之四则运算

时间:2022-03-25 17:47:32

Java入门练习之四则运算

项目目的

制作一个Java控制台程序,让他可以随机生成四则运算,并针对用户的输入判断对错。

项目分析

该项目本质上是一个四则运算出题器,可以创建一个Question类,其中应包含两个运算数(随机生成)和对应的答案,除此以外还需要实现随机产生加减乘除运算的功能。

项目实现

Question类

public class Question {
private Integer a,b;
private int answer;
private char operator;
Question(){
//随机生成两个运算数
a = (int)(1+Math.random()*10000);
b = (int)(1+Math.random()*10000);
//根据之前的随机结果生成对应运算符并计算出答案
if(a < 2500){
operator = '+';
answer = a+b;
}
else if(a < 5000) {
operator = '-';
answer = a - b;
}
else if(a < 7500) {
operator = '*';
answer = a * b;
}
else {
operator = '/';
answer = a / b;
}
}
public int getA(){
return a;
}
public int getB(){
return b;
}
public int getAnswer(){
return answer;
}
//打印题目
public void putQuestion(){
System.out.println(a.toString() + operator + b.toString() + "=?");
System.out.println("请填入\'?\'处的数字,只取整数,小数点后截断");
}
}

测试类

import java.util.Scanner;

public class Test {
private static int yourAnswer;
public static void main(String []args){
Scanner sc = new Scanner(System.in);
Question q = new Question();
q.putQuestion();
yourAnswer = sc.nextInt();
if(yourAnswer == q.getAnswer()){
System.out.println("回答正确!");
}
else {
System.out.println("回答错误");
System.out.println("正确答案:" + q.getAnswer());
}
}
}

运行结果

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAa8AAAB4CAYAAABFJ30iAAAACXBIWXMAABJ0AAASdAHeZh94AAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AACAASURBVHic7Z29ruraufd/vMotJLkBjJwTcQF2E+V0RhQUQaeks6Wt0xjRojcSLbK7SNDRHYkULpBHGe0GLsBvsi0PbuBkXYTfwnxjwGYy19qs9fwkpDnt4fHh8fEfzzOG7Uae5zmCIAiC8Eb8n2+dAUEQBEGoyxPipQltm1CXnQrx7AaNRvGzPUVZsGN4heep++dt+xBfw/bK062c9QrxKe94/vJnh+flqVrei3AN20N9djkEQRC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q8IlGMW+2d3eX/ipKkyrY4+r1eLBaeXbjV4co6TPpnb5BQCuPtwkEU+fBdIDhM3NTJm/hPkxfE75NSN3ZQxs7C4IgfDR3LbLTTX4rV9Rxzurqd9X380Hlisvv7H7vRCUOoLyc8fR80urboZXH2xzGSUHU5Id0IrbdEO+tR2du4Y5njIZduhgnO+ob/gx3PWBJwPSDgieMvfo3LO061q1IQhbzHp1B9ZVlucyK7an11TYd4EQFiffGoDep0rkJhUSDCILwjWm1+72maSunL0BrFODUe3sV4uVDopPhvSa0FzAbkcdzsmVKer7Dex3l0ZlDMGvYtf5APmewvlxndlo9xeJtDrMVU8c4SadDm14+O3uNyz4CcrIkxcJNVs3CJwiCIHw4H/Aalw9AK8JdF/9O569Cj3wYXXdlKY9OPKK4NW+lQrzcJGrcRkSjwg0Mh6ciW08ReizM6VWhevT9ZoIgCMKX8X0ImSAIgiA8yTfY2UMQBEEQPg4RMkEQBOGlESETBEEQXhoRMkEQBOGlESETBEEQXhoRMkEQBOGlESETBEEQXhoRMkEQBOGlESETBEEQXhoRMkEQBOGlESETBEEQXhoRMkEQBOGlESETBEEQXhoRMkEQBOGl+f+d6SGq3uUCnAAAAABJRU5ErkJggg==" alt="image">

项目难点

该项目属于java的入门项目,没有太大的难度,中间遇到的一个小问题在于输出题目时,我当时写的代码是这样的

private int a,b;
public void putQuestion(){
System.out.println(a + operator + b + "=?");
System.out.println("请填入\'?\'处的数字,只取整数,小数点后截断");
}

在打印题目时本意是打印成: xxx(a)+ xxx(b) = ?

但编译器将operator(char)型隐式转换为int,最终打印的结果将a、operator、b三个int型相加后一起输出了。运行结果如下图:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAA+CAYAAABHnT5xAAAACXBIWXMAABJ0AAASdAHeZh94AAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AABcHSURBVHic7Z29sqo+uIcfz5xLEYfGC4A7wLGwsbaDGsfWitaBWjtrGwqH3IFcAA1DvJec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VQShk9Dyl0ctiJxldVxln47cO/XJQnvGL1nZXRIVISucqvn8jf5k+32cTraG6W+cL9FGcG4tYdJeziykV9o1b8rVNIyTsu8nkz6njVEkbQLThIq94FdKTo4EcWDcfPQrvyQnlLq2ZqlRqPRaDT/Gd76BW2NRqPRaP5VtLBpNBqN5lehhU2j0Wg0vwotbBqNRqP5VWhh02g0Gs2vQgubRqPRaH4VWtg0Go1G86vQwqbRaDSaX4UWNo1Go9H8Kv4PLTbN6LOzJi4AAAAASUVORK5CYII=" alt="image">

解决方案

  1. 不使用int类,改用Integer类,并使用自带的tostring方法将a和b转化为string类型,成功打印,这也是上贴代码使用的方法
  2. 使用printf格式化输出,代码如下:

    System.out.printf("%d%c%d=?\n",a,operator,b);
  3. 使用两行print和一个println打印,代码如下:
    System.out.print(a);
System.out.print(operator);
System.out.println(b + "=?");

解决方案还有很多,以上提供三个方法供新手参考。


以上内容如有不足,欢迎指正。