❶ java课程程序设计报告 课题:小学算术运算测试程序
这个你可找一个简单计算器就可以,能实现你的要求
❷ 自动出题系统(java 课程设计) 谁有 发一个给我 要完整的源代码!!![email protected] 好的话加分
我有一个 是这样写的你看一下 是否满足你的条件
他是一个有登陆 显示在线考试的系统 用户登陆之后 会有一个菜单选项 选择考试
进入考试界面 显示每题 用按钮点击找到下一题 做完之后 打分
❸ JAVA课程设计题目答案
问题呢。。。。????
❹ java课程设计 小学生数学闯关游戏
大致整理了一下你的需求~~最便宜的也得2000块钱才能做吧~
最基本需要的功能如下
1:教师登陆出题、查看成绩
2:学生登陆答题、计时、判分
3:账号管理
❺ 用Java做出 小学生数学练习题目自动生成系统,要完整的可以运行的界面之类的
能够帮你完成这个题目,QQ?Email?
小学生数学练习题目自动生成系统
❻ 《Java》期末课程设计
import java.util.Scanner;
public class InputProcess {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);//读取来用户的输入源
StringBuffer text = new StringBuffer();//保存用户的输入
System.out.println("请输入: ");
text.append(in.nextLine());//读入用户的输入
String result = text.toString();
result = result.replaceAll("word", "world");//将子字符串“word”替换为字符串“world”
result = result.replaceAll("this", "");//删除所有的子字符串“this”
System.out.println(result);
}
}
希望能帮到你,仍有问题可以HI我~!
❼ Java课程设计小学生算数测试程序APPLET版
明白算法就不难实现了。首先生成考题:十以内的两个数字随机组合,小专学是没有负数的,0不能属做除数等细节考虑到,生成后。学生输入答案,判断是否和执行结果一致就行了。applet只是java的一种呈现方式,核心算法都一样。如果还不清楚,可以到码源网联系客服定制开发 源码交易平台
❽ 小学生数学测试软件的编写java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Random;
public class Caculate {
private enum CalType {
Add,
Minus,
Multiply,
Divide;
public static CalType getType(String type) throws Exception{
if("+".equals(type)){
return Add;
} else if("-".equals(type)){
return Minus;
} else if("*".equals(type)){
return Multiply;
} else if("/".equals(type)){
return Divide;
} else {
throw new Exception("calulate type invalid!");
}
}
}
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
do{
System.out.print("选择题型:(+,-,*,/): ");
String strType = in.readLine();
try {
CalType calType = CalType.getType(strType);
System.out.print("题目数量: ");
int num = Integer.parseInt(in.readLine());
int count = 0;
Random rand = new Random();
while(count++ < num){
int number1 = rand.nextInt(1000);
int number2 = rand.nextInt(1000);
double result,answer;
result = 0;
System.out.println("第" + count + "题:" );
switch(calType){
case Add:
System.out.print(number1 + "+" + number2 + "=");
result = number1 + number2;
break;
case Minus:
System.out.print(number1 + "-" + number2 + "=");
result = number1 - number2;
break;
case Multiply:
System.out.println(number1 + "*" + number2 +"=");
result = number1 * number2;
break;
case Divide:
System.out.println(number1 +"/" + number2 + "=");
result = (double)number1 / number2;
}
answer = Double.parseDouble(in.readLine());
if(answer == result){
System.out.println("你答对了!");
}else{
System.out.println("你答错了,正确答案:" + result);
}
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}while(true);
}
}
❾ java课程设计“小学算术运算测试程序”
花了好几个小时,测试通过,希望楼主多给点分
import java.util.Scanner;
class Question{
private int firstParam;
private int secondParam;
private String operator;
private int answer;
private int score;
public int getFirstParam() {
return firstParam;
}
public void setFirstParam(int firstParam) {
this.firstParam = firstParam;
}
public int getSecondParam() {
return secondParam;
}
public void setSecondParam(int secondParam) {
this.secondParam = secondParam;
}
public String getOperator() {
return operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
public int getAnswer() {
return answer;
}
public void setAnswer(int answer) {
this.answer = answer;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
//构造
public Question(int firstParam, int secondParam) {
this.firstParam = firstParam;
this.secondParam = secondParam;
}
}
public class StudentStudy {
private int questionNumber;
private String operator;
private Question[] questions;
private int rightNumber=0;
private int wrongNumber=0;
public String getOperator() {
return operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
public int getQuestionNumber() {
return questionNumber;
}
public void setQuestionNumber(int questionNumber) {
this.questionNumber = questionNumber;
}
public int getRightNumber() {
return rightNumber;
}
public void setRightNumber(int rightNumber) {
this.rightNumber = rightNumber;
}
public int getWrongNumber() {
return wrongNumber;
}
public void setWrongNumber(int wrongNumber) {
this.wrongNumber = wrongNumber;
}
public Question[] getQuestions() {
return questions;
}
public void setQuestions(Question[] questions) {
this.questions = questions;
}
public int getRandom(){
return (int)(Math.random()*10);
}
public int calculateByOperator(String operator,int first,int second){
switch(operator.charAt(0)){
case '+':
return first+second;
case '-':
return first-second;
default:
return 0;
}
}
public void makeQuestion(){
mywhile:
while(questions[questionNumber-1]==null){
Question question=new Question(getRandom(),getRandom());
for(int i=0;questions[i]!=null&&i<questionNumber;i++){
if((question.getFirstParam()==questions[i].getFirstParam())&&(question.getSecondParam()==questions[i].getSecondParam())){
continue mywhile;
}
}
for(int i=0;i<questionNumber;i++){
if(questions[i]==null){
questions[i]=question;
questions[i].setOperator(operator);
questions[i].setScore(100/questionNumber);
questions[i].setAnswer(calculateByOperator(operator,questions[i].getFirstParam(),questions[i].getSecondParam()));
break;
}
}
}
}
public StudentStudy(int questionNumber){
this.questionNumber=questionNumber;
questions=new Question[this.questionNumber];
}
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.println("现在开始测试,请填写要测试的试题数量(1-100):");
int number=input.nextInt();
StudentStudy ss=new StudentStudy(number);
System.out.println("请选择要测试的试题类型:1加法2减法");
int type=input.nextInt();
switch(type){
case 1:
ss.setOperator("+");
break;
case 2:
ss.setOperator("-");
break;
default:
System.out.println("输入有误,退出系统!");
System.exit(0);
}
ss.makeQuestion();
for(int i=0;i<number;i++){
System.out.println("第"+(i+1)+"题:"+ss.getQuestions()[i].getFirstParam()+ss.getQuestions()[i].getOperator()+ss.getQuestions()[i].getSecondParam()+"=?");
int answer=input.nextInt();
if(ss.getQuestions()[i].getAnswer()==answer){
ss.setRightNumber(ss.getRightNumber()+1);
System.out.println("回答正确!");
}
else{
ss.setWrongNumber(ss.getWrongNumber()+1);
System.out.println("回答错误!");
}
}
System.out.println("您总共答了"+ss.getQuestionNumber()+"道题,答对"+ss.getRightNumber()+"道,答错"+ss.getWrongNumber()+"道,最后总分为:"+ss.getRightNumber()*100/ss.getQuestionNumber()+"分");
}
}