javaEE调查问卷课程设计报告 下载本文

Java综合课程设计报告

   A市场竞争要求

   B 就业压力大,多一份技能,多一份保障
   C 跟随潮流

   D其他

11、您认为一张驾照能反应学车人的真实驾驶水平吗?

   A能

   B不能

   C一定程度上能

12、考驾照会影响你学习吗?

   A绝对会

   B根本不会

   C有一点点会

谢谢您的合作

2.

<%@pagelanguage=\import=\pageEncoding=\%> <%@pageimport=\%> <%

String path = request.getContextPath();

String basePath = request.getScheme() + \ + request.getServerName()

dc.jsp6

Java综合课程设计报告

+ \ + request.getServerPort() %>

\>

连接数据库

+ path + \;

\, \,

String sql1 = \

sql1 = sql1 + \; PreparedStatement state = conn.prepareStatement(sql1); //state=conn.prepareStatement(sql1);

state.setString(1, request.getParameter(\)); state.setString(2, request.getParameter(\)); state.setString(3, request.getParameter(\)); state.setString(4, request.getParameter(\)); state.setString(5, request.getParameter(\)); state.setString(6, request.getParameter(\));

survey(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10,q11,q12) \;

7

Java综合课程设计报告

state.setString(7, request.getParameter(\)); state.setString(8, request.getParameter(\)); state.setString(9, request.getParameter(\)); state.setString(10, request.getParameter(\)); state.setString(11, request.getParameter(\)); state.setString(12, request.getParameter(\)); int n = state.executeUpdate(); if (n > 0) { }

String sql = \; state = conn.prepareStatement(sql); ResultSet rs = state.executeQuery();

out.println(\); out.println(\);

out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); out.println(\); while (rs.next()) {

out.println(\);

out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(\ + rs.getString(\) + \); out.println(n); out.println(\);

8

Java综合课程设计报告

%>

}

out.println(\ + rs.getString(\) + \); out.println(\);

out.println(\);

} catch (Exception e) {

e.printStackTrace(); } finally { }

对每个问题的选项的统计

q1您的性别:

A:男<%=p.getPercentage(\, \)%>  B:女<%=p.getPercentage(\, \)%>

q2您所在的年级

A:大一 <%=p.getPercentage(\, \)%>  B:大二 <%=p.getPercentage(\, \)%>  

C:大三 <%=p.getPercentage(\, \)%>  D:大四<%=p.getPercentage(\, \)%>

q3您的户口

A:城市<%=p.getPercentage(\, \)%>  B:农村<%=p.getPercentage(\, \)%>

q4您是否已经获取驾照

A:是 <%=p.getPercentage(\, \)%>  B:否(包括正

在学车的)<%=p.getPercentage(\, \)%>

q5您是否打算考取驾照

A:是,打算在毕业前考取<%=p.getPercentage(\,

\)%>  B:是,打算在毕业后考取<%=p.getPercentage(\, \)%>  

C:否<%=p.getPercentage(\, \)%>

9

Java综合课程设计报告

q6您对考驾照的预期价格是

A:2000以下<%=p.getPercentage(\, \)%>  B:2000~2500

<%=p.getPercentage(\, \)%>  

C:2500~3000<%=p.getPercentage(\, \)%>  D:3000~3500 <%=p.getPercentage(\, \)%>   E:3500以上<%=p.getPercentage(\, \)%> 学

<%=p.getPercentage(\, \)%>   E:学车费上涨,早

学便宜点 <%=p.getPercentage(\, \)%>  F:为将来开车做准备<%=p.getPercentage(\, \)%>

q8您打算什么时间去学车

q7在大学期间您打算考驾照的考虑因素

A:时间充足,消磨时间 <%=p.getPercentage(\,

<%=p.getPercentage(\, \)%>   C:父母要求

\)%>  B:为就业增添筹码

<%=p.getPercentage(\, \)%>  D:从众心理,看见别人学车,自己也想

A:寒暑假 <%=p.getPercentage(\, \)%>  B:周末 <%=p.getPercentage(\, \)%>  

C:每天晚上 <%=p.getPercentage(\, \)%>  D:除上

课以外的任何时间 <%=p.getPercentage(\, \)%>  

E:由教练安排<%=p.getPercentage(\, \)%>

q9如果您去考驾照,学费源于

A:父母 <%=p.getPercentage(\, \)%>  B:自己储蓄<%=p.getPercentage(\, \)%>

q10您认为大学生考驾照积极性高涨的原因

A:市场竞争要求 <%=p.getPercentage(\, \)%>  B:

<%=p.getPercentage(\, \)%>   C:跟随潮流

就业压力大,多一份技能,多一份保障

<%=p.getPercentage(\, \)%>  D:其他<%=p.getPercentage(\,

10