計算機輔助教學軟體開發 教學生英語 ,連線資料庫

2021-10-07 03:41:15 字數 2169 閱讀 5222

題目要求:螢幕.上隨機出現乙個漢語單詞,英語單詞,漢語片語,英語片語或- -短句提示學生給出相應答案,答錯了要//提示要求重新輸入,直到答對為止。要統計給分,且累計,夠- -定分數後可進級,即從單詞到片語,從片語到短句,裡面有三關,單詞關,片語關,短語關

using system;

using system.collections.generic;

using system.linq;

using system.text;

using system.data;

using system.data.sqlclient;

using system.collections;

namespace 背單詞

//連線資料庫得到所需資料

public

static

hashtable

connection

(string strsql)

for(

int i =

0; i < chinese.count;

++i)

//把倆個list裡的值放到hashtable裡

sdr.

close()

; conn.

close()

;return words;

}//判斷答案是否正確,計算得分並返回

public

static

void

judge

(out

int score,

hashtable words,

outint flage)

", score)

; console.

writeline

("請選擇是否繼續答題:按任意鍵繼續 no退出");

choose = console.

readline()

;if(choose ==

"no")分"

, score)

; flage =1;

return

;//退出迴圈,退出程式}}

else

if(chinanswer == item.value.

tostring()

)", score)

; console.

writeline

("請選擇是否繼續答題:按任意鍵繼續 no退出");

choose = console.

readline()

;if(choose ==

"no"

/*||score == words.count*/)分"

, score)

; flage =1;

return;}

}}}}

}//第一關,我這一關有五題,答對3題就可以通關,每題有三次機會答錯就要重新開始

public

static

void

pass_1

(string strsql_1,

int score,

string strsql_2,

string strsql_3,

int flage)

if(score >=3)

//進入下一關

else

//重新開始

}public

static

void

pass_2

(string strsql_2,

int score,

string strsql_3,

int flage)

if(score >=3)

//進入下一關

else

//重新開始

}public

static

void

pass_3

(string strsql_3,

int score,

int flage)

if(score >=3)

//進入下一關

else

//重新開始}}

}

小學生數學計算機輔助教學系統

小學生數學計算機輔助教學系統 computer teaching system of mathematics for primary school students 標頭檔案 include include 提供srand rand include 提供time null 函式宣告 intquest...

個人計算機輔助教學系統團隊專案說明

需求說明文件 author鄧凱烽 03 14 developer 鄧凱烽 organizer true 徐忠波 謝聰 何陽燦 崔超傑 周子淵 environment sever apache database mysql severscript php 功能 登入 註冊 作業評分排行公示 面向老師的...

C語言實現小學生計算機輔助教學系統

開發乙個小學生計算機輔助教學系統。使用隨機書產生函式產生1 10之間的隨機數作為運算元,隨機產生一道四則運算題,配合使用switch語句和print 函式呼叫,來為學生輸入的正確或者錯誤的答案輸出不同的評價。若10道題做完之後正確率低於75 則重新做10道題,直到回答正確率高於75 時才退出程式。要...