First, the needs analysis
Parents can use the program to small children at home some random exercises, including overtime. Less. Multiply. Parents may be selected from the other and which one of the four operations.
Second, the functional design
(1) let the user select the desired operation mode
(2) generating the operational needs of the user in the subject after selection
(3) After completing the test answers are correct answer and to give tips
(4) you can always select a different calculation system
Third, the design and implementation
This little program program I implemented in C language using the c-free use of the main functions of which include good judgment if
Fourth, the test run
To cover part of the code
void Minu ()
{
int A, B, C;
A = RAND ()% 100;
B = RAND ()% 100;
the printf ( "Answer: \ n \ t \ t% d -% d =", a, B);
Scanf ( "% D", & C);
IF (ab & == C)
{
the printf ( "correct answer \ n-!");
right ++;
}
the else
{
the printf ( "wrong answer \ n-!");
wrong ++;
}
}
Four arithmetic functions are the same, but a method to control the results did not understand the whole
The main functions are the following
int main(){
int choise;
int con=0;
printf("\n\t\t\t欢迎进入小学简易四则运算\n\n");
while(1)
{
printf("请选择:\n");
printf("\t\t\t 加法运算(请输入1)\n");
printf("\t\t\t 减法运算(请输入2)\n");
printf("\t\t\t 乘法运算(请输入3)\n");
printf("\t\t\t 除法运算(请输入4)\n");
printf("\t\t\t 退出运算(请输入5)\n");
if(con==0)
scanf("%d",&choise);
switch(choise)
{
case 1:
add();
break;
case 2:
minu();
break;
case 3:
mul();
break;
case 4:
di();
break;
case 5:
return 0;
}
总结
任务内容 |
计划功完成需要时间(min) |
时间完成需要时间(min) |
估计任务所需时间以及大致步骤 |
10 |
20 |
开发 |
240 |
300 |
需求分析 |
3 |
4 |
生成设计文档 |
20 |
40 |
代码规范 |
6 |
20 |
具体设计 |
20 |
10 |
具体编码 |
120 |
180 |
测试 |
30 |
50 |
测试报告 |
20 |
30 |
计算工作量 |
2 |
2 |
事后总结 |
20 |
60
|
注:表格和文章格式借鉴宝乐同学