① c语言程序设计(1) 小学生计算机辅助教学系统
right_prompt()
{
intx;
x=rand()%4+1;
switch(x){
内case1:
printf("VeryGood!容 ");
break;
case2:
printf("Excellent! ");
break;
case3:
printf("Nicework! ");
break;
case4:
printf("Keepupthegoodwork! ");
break
}
}
wrong_prompt()
{
intx;
x=rand()%4+1;
switch(x){
case1:
printf("No.Pleasetryagain. ");
break;
case2:
printf("Wrong.Tryoncemore. ");
break;
case3:
printf("Don’tgiveup! ");
break;
case4:
printf("Notcorrect.Keeptrying. ");
break;
}
}
② 题目:计算机辅助教学(CAI)软件开发:教小学生学算术。
求大神!!!!!!!!!!!!!!!!!!!!
③ C程序课程设计题目:小学生计算机辅助教学系统。 详情如下,望各位高手帮忙给出源代码!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void main()
{
int a,b,op,term;
int x,i=0;
int counter = 0; /*初始答对题数为*/
char opchar;
srand(time(NULL)); /*为函数rand()设置随机数种子*/
a= rand()%10+1;
b= rand()%10+1;
for(i= 0;i < 10;i++)
{
a= rand()%10+1;
b= rand()%10+1;
op=rand()%4+1;
switch(op) /*根据运算符号不同进行不同的运算*/
{
case1:opchar='+';
term=a+ b;
break;
case2: opchar='-';
term=a - b;
break;
case3: opchar='*';
term=a*
b;
break;
case
4:
opchar='/';
term=a/b;
break;
default:
printf("Wrong
operator!");
}
printf("%d%c%d=",a,opchar,b);
scanf("%d",&x);
if(x==term)
{
printf("Right!\n");
counter++;
}
else
printf("Wrong!\n");
}
printf("Total
score is %d\n",counter*10);
printf("Rate
of correctness is %d%%\n",counter*10);
}
④ c语言编程作业小学生计算机辅助教学系统
#include<stdio.h>
#include<stdlib.h>
#ifndefRedContritio
#include<string.h>
#else
#message("ThisisRedContritio'senergy")
#endif
#include<time.h>//用到了time函数
intjia(inta,intb){
returna+b;
}
charsolutation[999]="