C語言課程設(shè)計(jì)方案學(xué)生成績管理系統(tǒng)軟件_第1頁
C語言課程設(shè)計(jì)方案學(xué)生成績管理系統(tǒng)軟件_第2頁
免費(fèi)預(yù)覽已結(jié)束,剩余14頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、課程名稱課程設(shè)計(jì)報(bào)告學(xué)生成績管理系統(tǒng)同組人員 指導(dǎo)教師20102010 年 6 6 月 2828 日報(bào)告目錄一、課程設(shè)計(jì)題目二、程序要求三、設(shè)計(jì)要求四、程序分工五、程序介紹六、程序ns圖七、程序代碼年級專業(yè)0909 電子信息工程(2 2 )班完成日期八、實(shí)驗(yàn)心得和體會九、參考文獻(xiàn)一、課程設(shè)計(jì)題目學(xué)生成績管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)二、程序要求1)每條記錄包括:學(xué)號、姓名、專業(yè)和5門課程的成績;2)能夠?qū)崿F(xiàn)添加、刪除、修改功能;3)能夠計(jì)算某學(xué)生的總分和平均分;4)能按照總分排序輸出。(一)主菜單 學(xué)生成績管理系統(tǒng)1、 成績錄入2、排名輸出3、 修改功能4、刪除功能5、 添加功能(二)各菜單項(xiàng)功能( 1

2、) 成績錄入:輸入學(xué)生的學(xué)號、姓名及五門課的成績;( 2) 排名輸出: 計(jì)算學(xué)生的平均分; 根據(jù)學(xué)生的平均分高低,對學(xué)生的數(shù)據(jù)進(jìn)行排序后輸出;(3)修改功能:對學(xué)生信息進(jìn)行修改;( 4)刪除功能 :刪除某個學(xué)生的信息; (5)添加功能:在原來的名單中再添加某個學(xué)生的信息;三、設(shè)計(jì)要求1、在教師指導(dǎo)下,學(xué)生根據(jù)選定的課題,綜合運(yùn)用所學(xué)程序設(shè) 計(jì)的知識,完成問題分析、模塊設(shè)計(jì)、代碼編寫、程序調(diào)試和運(yùn)行 等訓(xùn)練任務(wù)。通過課程設(shè)計(jì),初步鍛煉運(yùn)用所學(xué)基礎(chǔ)知識解決實(shí)際問題的能力,掌握軟件開發(fā)的基本過程和基本方法以及良好的編程風(fēng)格,培 養(yǎng)在軟件開發(fā)中相互合作的團(tuán)隊(duì)意識四、程序分工我負(fù)責(zé)前面四個函數(shù),以及總體

3、設(shè)計(jì)。陶建勇則負(fù)責(zé)剩下的三個函數(shù),以及程序調(diào)試。五、程序介紹學(xué)生成績管理系統(tǒng)由7個函數(shù)組成,包括main函數(shù)、choice函數(shù)等;main函數(shù)主要是對Menu函數(shù)、choice函數(shù)、shanchu函數(shù)、xiugai函數(shù)進(jìn)行聲明,Menu函數(shù)是界面函數(shù),有兩個功能。一是輸出一個界面,二是作為進(jìn)入其它函數(shù)的入口。輸入1則執(zhí)行enter函數(shù);輸入2則執(zhí)行printf函數(shù),輸入3則執(zhí)行xiugai函數(shù),輸入4則執(zhí)行刪除函數(shù),輸入5則執(zhí)行添加函數(shù)。六.程序 NS 圖1 學(xué)生信息錄入:調(diào)用 input()函數(shù)for(i=0oiNoi+)輸入學(xué)生學(xué)號、姓名、五門 成績2 成績排序:調(diào)用 scort ()函數(shù)

4、if(stuk.sumstuj.sum)k=j 。顯示出學(xué)生排序結(jié)果3 學(xué)生成績處理:調(diào)用 xiugai ()函數(shù),修改已錄入的學(xué)生成績。調(diào)用 delete()函數(shù),刪除已錄入的某個學(xué)生的成績。調(diào)用 into()函數(shù),在原有的基礎(chǔ)上,添加新的學(xué)生成績七.程序源碼#i nclude#i ncludeint i struct studentchar name20 。int num 。int phy 。int maths 。int english 。int computer 。int vc 。int sum 。 float aver 。stu100 。void main()void choice()

5、 。void scan( ) 。 void find( ) 。void print( ) 。void xiugai( ) 。 void delete1() 。void into() 。 int u 。for(u=0 。 u=100)printf(The syterm is full,you cant continue.sorry)choice() 。printf(1.to continue enter the message of studentn2.to returnn) 。i+ 。 scanf(%d,&xe) 。while(xe!=1&xe!=2) printf(pleas

6、e enter the right choice)。if(xe=1) printf(please continue entern)。while(xe!=2) 。choice() 。void xiugai()int za,num2,j3 。if(i=0) choice()。 printf(please enter the message of thestudentn) 。 while(i!=0) printf(whats the num of the student that you want to xiugai?n) 。scanf(%d,&num2) 。for(j3=0 。 j3=i

7、。 j3+) if(stuj3.num=num2) strcpy(,/0) 。printf(Enter the new message of the studentn) printf(please enterthe name of studentn) scanf(%s,&) 。printf(please enterthe num of studentn) scanf(%d,&stuj3.num) 。 printf(please enterthe score of studentn)printf(phy:) 。 scanf(%d,&

8、stuj3.phy) printf(maths:) 。scanf(%d,&stuj3.maths) printf(computer:) 。scanf(%d,&puter) printf(English:) 。scanf(%d,&stuj3.english)printf(VC:) 。scanf(%d,&stuj3.vc) printf(The xiugai is sucessfull)else choice()。 printf(Cant find the num of the student pleaseenter the right numn)。 printf(

9、 1.continuen 2.returnn) 。 scanf(%d,&za) 。while(za!=1&za!=2) printf(please enter the right choice) if(za=1)printf(please continue entern)。if(za=2) choice() 。void delete1() int num3,j4,i3,za。if(i=0)printf(please enter the message of the studentn) while(i!=0) printf(please enter the num of the

10、student that you want to deleten) 。scanf(%d,&num3) 。for(j4=0 。 j4=i 。 j4+)if(num3=stuj4.num) for(i3=j4。 i3=100)choice()。 printf(The syterm is full,you cantcontinue.sorryn) 。printf( 0.continuen 1.return) 。 scanf(%d,&za) 。while(za!=0&za!=1)printf(please enter the right choice)。if(za=0) pri

11、ntf(please continue entern)。if(za=1) choice()。void print()int k,j,m,a 。struct student temp。while(1)printf(Do you want to continue ?n1.continuen2.returnn) scanf(%d,&a) 。if(a=1)for(k=0 。 ki 。 k+)stuk.sum=stuk.phy+stuk.maths+stuk.english+puter+stu k.vc 。for(j=0 。 ji 。 j+)stuk.aver=stuk.sum/5ofor(k=

12、0。ki-j。k+)if(stuk.sumstuk+1.sum)temp=stuk 。stuk=stuk+1 。stuk+1=temp 。printf(The list of the students :n)。printf(=n)。for(k=0 。 ki 。 k+)printf(%d.,k+1)。m=k+1 。printf(%dth student name is %sn num is %d n phy is %d n mathsis %d n english is %dn computer is %dn vc is%dn sum is %dn averis%fn,m,,s

13、tuk.num,stuk.phy,stuk.maths,stuk.english,puter,stuk.vc,stuk.sum,stuk.aver)。else choice() 。八. 課程設(shè)計(jì)心得體會幾周的課程設(shè)計(jì)就這樣的過去了 , 可以說這幾周過的很艱難 , 自己和同組同學(xué) 經(jīng)歷了構(gòu)思、設(shè)計(jì)、上機(jī)調(diào)試、運(yùn)行,經(jīng)過一遍又一遍的上機(jī)調(diào)試、運(yùn)行才使得課程設(shè)計(jì)做的相對完滿,當(dāng)遇到不會不懂不明白的地方就通過翻閱書籍,上 網(wǎng)找資料,問老師,和同學(xué)一起討論等一些方式來解決問題。通過幾周對 c 語注:本頁與上一頁用 A3 紙?zhí)子〕煞饷婧头獾?,課程設(shè)計(jì)報(bào)告正文用A4 紙打印然后裝訂言的深入研究,我知道,學(xué)好 c 語言的思想是最重要的,因?yàn)?c 語言是對代碼 研究的一種語言,有些語法句法研究就可以通過對 c 語言這種基本的語言來進(jìn) 行實(shí)現(xiàn),函數(shù)是 c 語言的基本結(jié)構(gòu),所以對函數(shù)的調(diào)用和使用都需小心???之,這次的課程讓我學(xué)了不少東西,也讓我對編程更有興趣,雖然學(xué)得不太 好,不過知道了努力的方向。由于本人的實(shí)力有限,經(jīng)驗(yàn)不足,懇請老師能多 多指點(diǎn),我將虛心領(lǐng)教。九、參考文獻(xiàn)1 譚浩強(qiáng)著 .C 程序設(shè)計(jì)(第三版) .北京:清華大學(xué)出版社 ,20052田淑清主編.二級教程-C 語言程序設(shè)計(jì) 08 版.高等教育出版社安徽師范大學(xué)

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論