试卷管理系统论文 - 图文(8)

2019-01-05 11:03

天津科技大学2010届本科生毕业设计

baseParams.j1 = document.getElementById('j1').value; baseParams.j2 = document.getElementById('j2').value; baseParams.j3 = document.getElementById('j3').value; baseParams.j4 = document.getElementById('j4').value; baseParams.j5 = document.getElementById('j5').value; baseParams.student_id = Ext.getCmp(\ ExtAjax({ param:baseParams, success:function(){alert(\添加成功!\ }); }

图5-5 查询成绩

这一模块中还有其它的计算功能。点击位于成绩表左上角的两个下拉框,可以看到第一个下拉框中有选择题、填空题和解答题的选项,第二个下拉框中有方差、均值、求和等的选项,选定后分别可以计算各项数值。通过R软件计算需要的数据,具体公式由R语句写成。

public class RMathServiceImpl implements RMathService {

private Map mathFun = new HashMap();

32

天津科技大学2010届本科生毕业设计

public RMathServiceImpl() { mathFun.put(\方差\ mathFun.put(\均值\ mathFun.put(\求和\ mathFun.put(\标准差\ mathFun.put(\最小值\ mathFun.put(\最大值\ mathFun.put(\中位数\ }

/**' *

* 求方差,均值求和标准差等等函数 */

@Override

public synchronized double getVariance(String tableName, String column, String type, HttpServletRequest request) throws BusinessException { // TODO Auto-generated method stub RConnection c; try { c = Rmysql.iniRMysql(request);//返回RConnection r连接 REXP exp = null; String x3 = \ + column + \ + tableName + \ \\\ //R软件sql语句 System.out.println(\语句:\\t\\t\\t\ exp = c.eval(x3); //执行查询 String x4 = \ System.out.println(\ exp = c.eval(x4); System.out.println(\ exp = c.eval(mathFun.get(type).getFunName() + \ double result = exp.asDouble(); System.out.println(mathFun.get(type).getMsg() + \为:\ Rmysql.closeConn(); return result; } catch (Exception e) {

33

天津科技大学2010届本科生毕业设计

}

}

// TODO Auto-generated catch block

throw new BusinessException(\

图5-6 选择题型

图5-7 选择项目

34

天津科技大学2010届本科生毕业设计

图5-8 计算填空题方差

三、 数据出图

图5-9 解答题成绩直方图

同样是在R软件中完成,是自带功能。在前台进行编辑,传入后台进行分析计算,然后将计算结果转化成byte形式,通过参数传回前台,按照具体分块显示结果,显示出柱状图。 /**

35

天津科技大学2010届本科生毕业设计

* 出图 */

@Override

public String createIm(HttpServletRequest request,String tableName, String column ,String imgType) throws BusinessException { // TODO Auto-generated method stub RConnection c; try { c = Rmysql.iniRMysql(request); String contextPath =

request.getSession().getServletContext().getRealPath(request.getRequestURI()); String path = contextPath.replace(\

\ String jpgName = UUidGerenator.getUUID(); String x3 = \ + column + \ as xxx from \ + tableName + \ REXP exp = null; System.out.println(x3); exp = c.eval(x3); String data = \ //String plotfunction = \ String plotfunction = imgType; PlotDemo.createImag(jpgName, path, c, data, plotfunction); Rmysql.closeConn(); return jpgName; } catch (Exception e) { // TODO Auto-generated catch block throw new BusinessException(\ } }

第二节 具体分析模块

这一部分主要对之前采集计算的基础数据进行整理,用特定公式完成试卷评估指标的实现,通过每道题的情况作出整体的判断,评定试卷。包括试卷信度、试卷区分度和试卷难度,试卷效度因为没有效标暂时无法完成,至于F-S-P曲线也未能完成,仅仅做出了试卷整体与各题型柱状图。

36


试卷管理系统论文 - 图文(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:公共基础知识政治经济学习题集及答案100道

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: