20162319-20162302结对编程(四则运算)第一周阶段总结

需求

实现一个命令行程序,要求:

1.自动生成小学四则运算题目(加、减、乘、除)
2.支持整数
3.支持多运算符(比如生成包含100个运算符的题目)
4.支持真分数
5.统计正确率

思路

首先我和结对同学构思了四则运算代码的模块,大致分为以下几个模块:
1.四则运算(https://git.oschina.net/pdds2017/20162302-20162319/blob/master/src/%E5%9B%9B%E5%88%99%E8%BF%90%E7%AE%97.java?dir=0&filepath=src%2F%E5%9B%9B%E5%88%99%E8%BF%90%E7%AE%97.java&oid=85852cd7532d1cc3c918831e38334a333afd7cab&sha=2a99d5725ff323a8b3409d3b5201c4641ed40ca3)

2.格式转换器(https://git.oschina.net/pdds2017/20162302-20162319/blob/master/src/%E6%A0%BC%E5%BC%8F%E8%BD%AC%E6%8D%A2%E5%99%A8.java?dir=0&filepath=src%2F%E6%A0%BC%E5%BC%8F%E8%BD%AC%E6%8D%A2%E5%99%A8.java&oid=6e86833e198dc7fcabe7cf6014e7872380abdecc&sha=2a99d5725ff323a8b3409d3b5201c4641ed40ca3)

3.生成算式(https://git.oschina.net/pdds2017/20162302-20162319/blob/master/src/%E7%94%9F%E6%88%90%E7%AE%97%E5%BC%8F.java?dir=0&filepath=src%2F%E7%94%9F%E6%88%90%E7%AE%97%E5%BC%8F.java&oid=95ade512c91da7c47792736a6786e9b757282711&sha=2a99d5725ff323a8b3409d3b5201c4641ed40ca3)

4.算式运算器(https://git.oschina.net/pdds2017/20162302-20162319/blob/master/src/%E7%AE%97%E5%BC%8F%E8%BF%90%E7%AE%97%E5%99%A8.java?dir=0&filepath=src%2F%E7%AE%97%E5%BC%8F%E8%BF%90%E7%AE%97%E5%99%A8.java&oid=01116f54c06a1269f313cb34d8d6e6145f023bb7&sha=2a99d5725ff323a8b3409d3b5201c4641ed40ca3)

5.驱动器(https://git.oschina.net/pdds2017/20162302-20162319/blob/master/src/%E9%A9%B1%E5%8A%A8%E5%99%A8.java?dir=0&filepath=src%2F%E9%A9%B1%E5%8A%A8%E5%99%A8.java&oid=707909b56030f2422f7c22e25e270ba7b1164372&sha=2a99d5725ff323a8b3409d3b5201c4641ed40ca3)

简易图

20162319-20162302结对编程(四则运算)第一周阶段总结_第1张图片

Junit测试

合作伙伴

20162302杨京典(http://www.cnblogs.com/yangjingdian/p/6852380.html)

你可能感兴趣的:(20162319-20162302结对编程(四则运算)第一周阶段总结)