![【管理知識(shí)】畢業(yè)設(shè)計(jì)小型企業(yè)工資管理系統(tǒng)_第1頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-5/7/9bcf4346-324a-47ad-bf1f-1a2837967026/9bcf4346-324a-47ad-bf1f-1a28379670261.gif)
![【管理知識(shí)】畢業(yè)設(shè)計(jì)小型企業(yè)工資管理系統(tǒng)_第2頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-5/7/9bcf4346-324a-47ad-bf1f-1a2837967026/9bcf4346-324a-47ad-bf1f-1a28379670262.gif)
![【管理知識(shí)】畢業(yè)設(shè)計(jì)小型企業(yè)工資管理系統(tǒng)_第3頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-5/7/9bcf4346-324a-47ad-bf1f-1a2837967026/9bcf4346-324a-47ad-bf1f-1a28379670263.gif)
![【管理知識(shí)】畢業(yè)設(shè)計(jì)小型企業(yè)工資管理系統(tǒng)_第4頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-5/7/9bcf4346-324a-47ad-bf1f-1a2837967026/9bcf4346-324a-47ad-bf1f-1a28379670264.gif)
![【管理知識(shí)】畢業(yè)設(shè)計(jì)小型企業(yè)工資管理系統(tǒng)_第5頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-5/7/9bcf4346-324a-47ad-bf1f-1a2837967026/9bcf4346-324a-47ad-bf1f-1a28379670265.gif)
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、隨心編輯,值得下載擁有! YOUR COMPANY NAME IS HERELOGO 專業(yè)|專注|精心|卓越beikezh日ng 【管理知識(shí)】畢業(yè)設(shè)計(jì)小 型企業(yè)工資管理系統(tǒng) Please enter your companys name and contentv 存檔資料 成績(jī): 華東交通大學(xué) 課程設(shè)計(jì)報(bào)告書(shū) 所屬課程名稱C+程序設(shè)計(jì) 題 目小型企業(yè)工資管理系統(tǒng) 院(系)軟件學(xué)院 班 級(jí)網(wǎng)絡(luò)2006 班 學(xué) 號(hào) 學(xué)生姓名 指導(dǎo)教師 輔導(dǎo)教師 2007年7月7日 華東交通大學(xué) 課程設(shè)計(jì)(論文)任務(wù)書(shū) 軟件學(xué)院專業(yè)網(wǎng)絡(luò)工程 班級(jí) 06級(jí)2班 一、課程設(shè)計(jì)(論文)題目小型企業(yè)工資管理系統(tǒng) 二、 課程
2、設(shè)計(jì)(論文)工作:自2007年_6_月 25 日 起至 2007年 7 月 6 日止。 三、課程設(shè)計(jì)(論文)的內(nèi)容要求: 1)數(shù)據(jù)錄入:輸入各種數(shù)據(jù). 2)數(shù)據(jù)統(tǒng)計(jì):各銷售經(jīng)理的工資計(jì)算及最終按工資講行的冒 泡排序. 3)數(shù)據(jù)打印:打印各種數(shù)據(jù). 4)數(shù)據(jù)備份:把相關(guān)的數(shù)據(jù)寫(xiě)入文件 . 5)退出:退出本系統(tǒng). 學(xué)生簽名: 2007年7月9日 課程設(shè)計(jì)(論文)評(píng)閱意見(jiàn) 項(xiàng)目 等級(jí) 優(yōu)秀 良好 中等 及格 不及格 課程設(shè)計(jì)態(tài)度評(píng)價(jià) 出勤情況評(píng)價(jià) 任務(wù)難度評(píng)價(jià) 工作量飽滿評(píng)價(jià) 設(shè)計(jì)中創(chuàng)新性評(píng)價(jià) 論文書(shū)寫(xiě)規(guī)范化評(píng)價(jià) 綜合應(yīng)用能力評(píng)價(jià) 綜合評(píng)定等級(jí) 優(yōu)秀()良好()中等()及格()不及格() 評(píng)閱人 謝
3、昕職稱副教授 2007年7月11日 一、需求分析1 二、概要設(shè)計(jì)2 三、詳細(xì)設(shè)計(jì)3. 四、設(shè)計(jì)和調(diào)試分析 5 五、用戶手冊(cè)18 六、測(cè)試結(jié)果20 七、參考文獻(xiàn)21 一、需求分析 1. 從要求上來(lái)看是要對(duì)各個(gè)員工的各種情況 (名字、年齡、性別、職位、 工資狀況)進(jìn)行輸入。然后可以輸出 2. 可以對(duì)于員工數(shù)據(jù)進(jìn)行修改,可以查詢. 3. 對(duì)于員工的各種情況系統(tǒng)還可以進(jìn)行統(tǒng)計(jì)排名 二、概要設(shè)計(jì) 首先,創(chuàng)建了一個(gè) employee 類.然后派生出四個(gè)類 :manager、 technician、salesman、sales manager. 在派生類中定義了三個(gè)構(gòu)造函數(shù) 分別是:數(shù)據(jù)輸入函數(shù)(Input
4、),表格輸出函數(shù)(Print),排序函數(shù)(Pay). 其次,在總體結(jié)構(gòu)上,建立以各根菜單,用于選擇各種功能 1. Input(數(shù)據(jù)輸入):輸入員工的各種數(shù)據(jù). 2. Total(數(shù)據(jù)統(tǒng)計(jì)):將員工的總數(shù)據(jù)進(jìn)行對(duì)比排序,然后輸出 3. Output(數(shù)據(jù)顯示):顯示輸入的各種數(shù)據(jù). 4. Save(數(shù)據(jù)保存):對(duì)輸入的數(shù)據(jù)進(jìn)行保存?zhèn)浞? 5. Eixt(退出程序):執(zhí)行退出程序命令. 三、詳細(xì)設(shè)計(jì) 1. Input(數(shù)據(jù)輸入):定義了各個(gè)崗位的人員的類,并把每個(gè)類的人員 的屬性設(shè)為類中的保護(hù)成員,其中技術(shù)工的工作時(shí)間和每小時(shí)的所 得為私有成員,而銷售員的銷售額、經(jīng)理的工資和銷售經(jīng)理的所轄 部門(mén)的
5、銷售額和其底薪設(shè)為公有成員,再依次錄入。 2. Total(數(shù)據(jù)統(tǒng)計(jì)):根據(jù)所有類的工資算法在其所屬類中定義一個(gè)函 數(shù)void pay()來(lái)根據(jù)各個(gè)職位的具體情況來(lái)計(jì)算工資,并且算出的 工資經(jīng)過(guò)冒泡法排序 void prin ttotal() COUt |111; cout | Total|setw(10)total e ndl; cout 11 ; 3. Output(數(shù)據(jù)顯示):通過(guò)do-while循環(huán)以及制表格和setw的使用將 輸入的數(shù)據(jù)和統(tǒng)計(jì)并排序的數(shù)據(jù)以表格的形式打印出來(lái),銷售額合 計(jì)一欄寬度要大些。 void salepri nt() cout| setw(10)vv name1
6、 e ndl; cout| cout| setw(10) name2 e ndl; cout| cout| setw(10) name3 e ndl; cout| cout| setw(10) n ame4 e ndl; void prin t() setw(10) no1 |setw(10)sale1 1vendl;T setw(10) no 2 |setw(10)sale2 1vendl;T setw(10) no 3 |setw(10)sale3 1vendl;T setw(10) no4 |setw(10)sale4 cout|111 e ndl; cout|setw(10)vv no
7、 setw(10)vv name| setw(10)sex| setw(10)age| setw(10)salary e ndl; 4. Save(數(shù)據(jù)保存):通過(guò)函數(shù)save()來(lái)將輸入的數(shù)據(jù)和統(tǒng)計(jì)并排序的 數(shù)據(jù)進(jìn)行保存例如: void save() fstream outfile; outfile.ope n(f:flsdfj.txt,ios:app); if(!outfile) coutf cant ope n.n; abort(); outfileSales man gere ndl; outfilevIDvv novNAMEvv namevSEXvvsex vAGEvvagevSAL
8、ARYvvsalaryvve ndl; 5. Eixt(退出):利用exit來(lái)完成退出系統(tǒng)功能。 四、設(shè)計(jì)和調(diào)試分析 程序清單: #i nclude #i nclude #in clude #i ncludevioma nip.h #i nclude class employee public: employee。 salary=0; void pay() void prin t() void in put() coutID:; cinno; cout NAME:; cinn ame; cout SEX(m/w):; cin sex; cout AGE:; cin age; protected
9、: int no; char n ame8; float salary; char sex; int age; ; class man ager:virtual public employee protected: float mon thlypay,sale; public: man ager()m on thlypay=8000; void in put()coutMa nger;employee:i nput(); void save() fstream outfile; outfile.ope n(f:flsdfj.txt,ios:app); if(!outfile) coutf ca
10、nt ope n.n; abort(); outfileMa ngere ndl; outfilevIDvv novNAMEvv namevSEXvsexvvA GEvvagevSALARYvvsalaryvve ndl; void pay()salary=mon thlypay; void prin t() cout| Isetw(10) no I setw(10)sex Isetw(10)age I e ndl; e ndl; cout setw(10)v n ame setw(10)salary ; class tech nician: virtual public employee p
11、rivate: float hourlyrate; int workhours; public: tech nicia n()hourlyrate=100; void pay() coutv workhours; salary=hourlyrate*workhours; void in put()coutvTECHNICIANve ndl;employee:i nput(); void save() fstream outfile; outfile.ope n(f:flsdfj.txt,ios:app); if(!outfile) coutf cant ope n.n; abort(); ou
12、tfilevTECHNICIANvve ndl; outfilevIDvv novNAMEvv namevSEXvsexvvA GEvvagevSALARYvvsalaryvve ndl; void prin t() cout|11 e ndl; cout|setw(10)vv no setw(10)vv name| setw(10)sex |setw(10)age setw(10)salary| e ndl; ; class salesma n: virtual public employee protected: float commrate; float sales; public: s
13、alesma n( )commrate=0.04; void in put()coutSALEMAN;employee:i nput(); void save() fstream outfile; outfile.ope n(f:flsdfj.txt,ios:app); if(!outfile) coutf cant ope n.n; abort(); outfilevTECHNICIANvve ndl; outfilevIDvv novNAMEvv namevSEXvsexvvA GEvvagevSALARYvvsalaryvve ndl; void pay() cout n ame sal
14、es; salary=sales*commrate; cout| e ndl; cout Isetw(10) no setw(10) n ame |setw(10) vvsexvv Isetw(10)age setw(10)salary I e ndl; ; class salesma nager:virtual public man ager,virtual public salesma n private: floattotal;i ntn o1, no2,no3,no 4;char name18, name28, name38, name48; float sale1,sale2,sal
15、e3,sale4; public: void salema nager() mo nthlypay=5000; commrate=0.005; void in put()coutSales man ger;employee:i nput(); void save() fstream outfile; outfile.ope n(f:flsdfj.txt,ios:app); if(!outfile) coutf cant ope n.n; abort(); outfileSales man gere ndl; outfilevIDvv novNAMEvv namevSEXvsexvvA GEvv
16、agevSALARYvvsalaryvve ndl; fstream outfile; outfile.ope n(f:flsdfj.txt,ios:app); if(!outfile) coutf cant ope n.n; abort(); and outfileThesalary of saleman of sales manger themselvese ndl; outfilevIDvv no1vNAMEvv name1vSALARYvsal e1e ndl; outfileID no2vNAMEvv name2vSALARYvsal e2e ndl; outfileID no3vN
17、AMEvv name3vSALARYvsal e3e ndl; outfileID no4vNAMEvv name4vSALARYvsal e4e ndl; void pay() coutv n ameThe sales volume of everydepartme nt:; salary=mon thlypay+commrate*total; float totalsale()total=sale1+sale2+sale3+sale4;retur n total; void prin ttotal() cout|111endl;T cout| Total|vsetw(10)vvtotalv
18、v e ndl; cout11endl; void sort(salesma nager p) int tmp,i,j; for(j=0;j2;j+) for(i=0;in o1; cout Staff NAME:; cinn ame1; cout Sales volume:; cin sale1; coutno2; coutvv Staff NAME:; cinn ame2; cout Sales volume:; cin sale2; coutStaff ID:; cinno3; coutvv Staff NAME:; cinn ame3; coutvv Sales volume:; ci
19、n sale3; coutno4; coutvv Staff NAME:; cinn ame4; coutvv Sales volume:; cin sale4; void salepri nt() coutIsetw(10)vv no1 setw(10) n ame1I setw(10)sale1I e ndl; cout|11endl;T coutIsetw(10) no2 setw(10) name2I setw(10)sale2I e ndl; cout|11endl;T coutIsetw(10) no3 setw(10) name3I setw(10)sale3I e ndl; c
20、out|11endl;T coutIsetw(10) no4 setw(10) name4I setw(10)sale4I e ndl; void prin t() cout|111 e ndl; coutI setw(10) noI setw(10) name setw(10)sex I setw(10)salary # The system of salary manger ini- Chose your acti ons |n In put : 1, En ter |n Total : 2 , Enter |n; vvsetw(10)vvagev operate; switch(oper
21、ate) case 1: coutWaiting for a minute!endl; for(int i=0;i4;i+) mi.i nput(); for(i nt j=0;j4;j+) tj.i nput(); for(int k=0;k4;k+) sk.i nput(); for(int l=0;l4;l+) ; for(int i=0;i4;i+) mi.pay(); for(i nt j=0;j4;j+) tj.pay(); for(int k=0;k4;k+) sk.pay(); for(int l=0;l4;l+) sml.pay();sml.saler(); ;break;
22、case 2: coutWaiting for a minute!endl; for(int l=0;l4;l+) sml.totalsale(); for(int i=0;i4;i+) for(i nt j=0;j2;j+) smj.sort(smj+1); ; coutThe salema n of the first sales man gere ndl; cout i11en dl門(mén) e ndl; cout| ID| NAME | SALARY | sm0.salepri nt(); sm0.pri nttotal(); coutThe order is completee ndl;
23、coutList n ames of every sales man gere ndl; cout i1111 e ndl; e ndl; cout| ID| NAME | SEX | AGE I SALARY | e ndl; for(int k=0;k4;k+) smk.pri nt(); cout ;break; case 3: coutWaiting for a minute!endl; coutThe blank of the : endl; e ndl; couti111r cout| ID| NAME | SEX | AGE I SALARY I endl; for(int i=
24、0;i4;i+) mi.pri nt(); e ndl; cout1111L e ndl; coutvvI111r coutvv1111L e ndl; coutvv I SALARY e ndl; e ndl; e ndl; ;break; case 4: coutWaiting for a minute!endl; for(int i=0;i4;i+) mi.save(); for(i nt j=0;j4;j+) tj.save(); for(int k=0;k4;k+) cout| ID| NAME | SEX | AGE I endl; for(int k=0;k4;k+) sk.pri
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024-2025學(xué)年河北省唐山市高一上學(xué)期期中考試歷史試卷
- 2025年債務(wù)糾紛導(dǎo)致離婚協(xié)議書(shū)策劃模板
- 2025年企業(yè)暫時(shí)性停止勞動(dòng)合同樣本
- 2025年策劃復(fù)婚關(guān)系解除協(xié)議書(shū)樣本
- 2025年滌綸短纖項(xiàng)目申請(qǐng)報(bào)告模稿
- 2025年農(nóng)產(chǎn)品加工與合作協(xié)議書(shū)
- 2025年水蘇糖項(xiàng)目立項(xiàng)申請(qǐng)報(bào)告模板
- 建筑工地外部協(xié)作單位安全合作協(xié)議書(shū)
- 2025年信息技術(shù)服務(wù)合同續(xù)簽
- 2025年住宅區(qū)物品存放室租賃合同范文
- 睡眠障礙護(hù)理查房課件
- 應(yīng)急物資的采購(gòu)、存儲(chǔ)與調(diào)配
- 超融合架構(gòu)與傳統(tǒng)架構(gòu)對(duì)比解析方案
- 少兒美術(shù)課件- 9-12歲 素描班《場(chǎng)景素描》
- 剪映:手機(jī)短視頻制作-配套課件
- 金融工程.鄭振龍(全套課件560P)
- 血液透析的醫(yī)療質(zhì)量管理與持續(xù)改進(jìn)
- 橋式起重機(jī)日常檢查保養(yǎng)記錄表
- 五年級(jí)小數(shù)乘法豎式計(jì)算300道(可直接打印)
- 英語(yǔ)演講技巧和欣賞課件
- 物流托運(yùn)單模板
評(píng)論
0/150
提交評(píng)論