軟體工程實驗學生資訊管理系統詳細設計

2021-03-04 03:57:58 字數 4621 閱讀 4445

攀枝花學院實驗報告

實驗課程:軟體工程試驗實驗專案:專案詳細設計實驗日期:2013.5.1

系:數學與計算機學院班級:軟體工程姓名:馮斌學號:201010804004

指導教師:馮偉成績:

【實驗目的:】

1、掌握結構化程式設計的基本概念與技術

2、掌握物件導向程式設計的基本概念與技術

3、了解良好的編碼規範

【實驗內容:】

1、針對上次實驗課選定的軟體專案以及軟體設計成果進行編碼實現。

2、通過分析,確定採用何種程式語言。

3、確定使用的整合開發工具以及相關的其他工具(web伺服器、資料庫管理系統等)。

4、完成專案的程式設計工作。由於時間有限,如果選定軟體專案的編碼工作量過於龐大,可以選擇其中的部分主幹功能加以實現。

詳細設計

i 資料結構設計

1.1 系統平台總體布局圖

1.2 資料庫結構的具體設計

sql源模式建表:

create table class([班級號] [char] (10) not null ,[班級名] [char] (20) not null ,[班主任] [char] (10) null ,[專業號] [char] (10) null )

create table audit ([學號] [char] (10) not null ,[姓名] [char] (10) not null ,[班級號] [char] (10) not null ,[審核結果] [char] (60) not null )

create table student_score([學號] [char] (10) not null ,[姓名] [char] (10) null ,[班級號] [char] (10) null ,[課程號] [char] (10) not null ,

[課程名] [char] (20) null ,[課程類別] [char] (4) null ,[開課時間] [char] (10) null ,[教師工號] [char] (10) null ,[學分] [float] null ,

[成績] [int] null )

create table reward and punishment ([學號] [char] (10) not null ,[姓名] [char] (10) not null ,[班級號] [char] (10) not null ,[專業] [char] (10) not null ,[所在院系] [char] (16) not null ,[時間] [datetime] not null ,[說明] [char] (10) not null ,[內容] [char] (40) not null )

create table payment ([繳費號] [int] not null ,[學號] [char] (10) null ,

[姓名] [char] (10) null ,[班級號] [char] (10) not null ,[繳費時間] [char] (10) not null ,[應交費用] [int] not null )

create table course ([課程號] [char] (10) not null ,[課程名] [char] (20) not null ,[課程類別] [char] (4) not null ,[學分] [float] not null )

create table student([學號] [char] (10) not null ,[姓名] [char] (10) not null ,[所屬院系] [char] (20) not null ,[專業] [char] (16) not null ,

[班級] [char] (10) not null ,[年級] [char] (10) not null ,[性別] [char] (2) not null ,[出生年月] [datetime] not null ,[籍貫] [char] (16) not null ,[民族] [char] (10) not null ,[家庭住址] [char] (40) not null ,[郵政編碼] [char] (6) not null ,[政治面貌] [char] (8) not null ,[家庭**] [char] (10) null )

create table users([id] [char] (10) not null ,[pwd] [char] (10) not null ,[power] [char] (10) not null )

sql建立主碼,外碼,索引

alter table class with nocheck add

constraint [pk_bjb] primary key clustered ([班級號])

alter table audit with nocheck add

constraint [pk_byb] primary key clustered ([學號])

alter table student_score with nocheck add

constraint [pk_cjb] primary key clustered ([學號],[課程號])

alter table reward and punishment with nocheck add

constraint [pk_jcb] primary key clustered ([學號])

alter table payment with nocheck add

constraint [pk_jfb] primary key clustered ([繳費號])

alter table course with nocheck add

constraint [pk_kcb] primary key clustered ([課程號])

alter table student with nocheck add

constraint [pk_student] primary key clustered ([學號])

alter table users with nocheck add

constraint [pk_users] primary key clustered ([id])

alter table course with nocheck add

constraint [ck_cjb] check ([成績] > 0 and [成績] < 100)

alter table audit with nocheck add

constraint [ck_jfb] check ([應交費用] > 0),constraint [ck_jfb_1] check ([應交費用] >= [已交費用])

create index [ix_bjb] on class([班級號], [專業號]) on [primary]

create index [ix_byb] on audit ([學號], [班級號]) on [primary]

create index [ix_jfb] on payment([繳費號], [學號]) on [primary]

用sql語句建表:

alter table class

add constraint [fk_bjb_zyb]

foreign key ([專業號]) references [dbo].[zyb] ([專業號])

alter table audit

add constraint [fk_byb_student]

foreign key ([學號]) references [dbo].[student] ([學號])

alter table student_score

add constraint [fk_cjb_kcb]

foreign key ([課程號]) references [dbo].[kcb] ([課程號]),

constraint [fk_cjb_student]

foreign key ([學號]) references [dbo].[student] ([學號])

alter table audit add

constraint [fk_jcb_bjb] foreign key ([班級號]) references [dbo].[bjb] ([班級號]),

constraint [fk_jcb_student] foreign key ([學號]) references [dbo].[student] ([學號])

alter table audit add

constraint [fk_jfb_bjb] foreign key ([班級號])

references [dbo].[bjb] ([班級號]),

constraint [fk_jfb_student] foreign key ([學號])

references [dbo].[student] ([學號])

學生表:

成績表:

繳費表:

課程表:

班級表:

獎懲表:

畢業表:

使用者表:

各表之間的關聯圖:

ii模組詳細設計

2.1 輸出模組的設計

機內系統檔案處理

報表選擇和列印

2.2輸入模組的設計

事務處理

銀行資訊管理系統軟體工程實驗

淮海工學院電腦科學系 實驗報告書 課程名 軟體工程 題目 結構化設計實驗 班級 軟體092 學號 110913232 姓名 鐘貝娜 結構化設計驗報告要求 1目的與要求 1 系統學習和理解結構化軟體工程設計階段的基本任務 概念 原理 技術和方法 2 掌握設計階段各種設計工具,如 層次圖 程式流程圖 n...

軟體綜合實習學生資訊管理系統實驗報告

學生資訊管理系統實驗報告 1.實驗題目 編寫乙個程式實現學生基本資訊的管理功能 2.需求分析 輸入的形式和輸入值的範圍 int型的學號 年齡,char型的姓名 性別 生日 專業和學院。輸出的形式 輸出學生資訊管理 再根據 選擇對應的輸出操作。程式所達到的功能 輸入 新增 刪除 排序學生資訊,以及按學...

軟體工程實驗報告宿舍管理系統

軟體工程實驗報告 宿舍管理系統 學校專業學號姓名一 系統分析 3 1.業務流程圖 3 二 需求分析 4 三 系統整體設計 5 1.系統管理模組 5 2.宿舍資訊管理模組 5 3.學生入住管理模組 5 4.宿舍衛生檢查模組 5 5.水電收費模組 6 6.報修管理模組 6 7.來訪人員管理模組 6 8....