課程 courses.txt
Introduction to Computing;comp_100;3;Fundamentals of computing…
Computer Programming;comp_101;3;Programming using an imperative language such as C...
Object-oriented programming;comp_201;3;Programming using an OO language such as C++ or Java...
開課 courseofferings.txt
comp_100;CS;2013;Fall
comp_100;MU;2013;Fall
comp_100;CH;2013;Fall
comp_101;CS;2013;Fall
comp_201;CS;2014;Spring
載入資料後,行政人員可以選擇顯示特定學系指定學期的所有開課資訊,其順序按課程代碼遞增排序。隨後,行政人員可以選擇新增或刪除開課,例如:選CS系2013年 Fall學期後增加開課,
Select department: CS
Select year semester: 2013 Fall
Fall 2013 Course offerings:
Computer Science (CS): 2 courses, 6 credits
2013F_CS_comp_100; Introduction to Computing; 3 credits
2013F_CS_comp_101; Computer Programming; 3 credits
Add (+)/delete(-) course offering or anything else to go back:+
You selected adding a new course offering.
Input course id:comp_201
程式輸出:
Name: Object-oriented programming
ID: comp_201
Credits: 3
Description: Programming using an OO language such as C++ or Java...
Is this correct Y/N: Y
Done adding course offering.
Fall 2013 Course offerings:
Computer Science (CS): 3 courses, 9 credits
2013F_CS_comp_101; Computer Programming; 3 credits
Add (+)/delete(-) course offering or anything else to go back:x
Select department:
如果新增的開課已有同一開課代號的課程存在,則通知使用者並忽略該項作業。
離開程式時,提示行政人員是否將開課資料寫回courseofferings.txt。