版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、COMP231 ProjectProject SpecificationPrepared by Raymond WongPresented by Raymond WongCOMP231 Project1OutlineProgramming DetailsDeadlineHand inWorkflowGrading PolicyStubsDemoProject TopicImportant PointSampleCOMP231 Project2Group Forming1 or 2 members per groupPlease send an email containing the foll
2、owing information of each member to our tutor, Grace, to form a group. student IDstudent nameemailCOMP231 Project31. Programming DetailsLanguage: Java (with JDBC)Java Version: Java SDK 6.0 (Version 1.6.0)Testing Platform: LinuxCOMP231 Project42. Deadline17 Sept, 2009 3:00pm28 Sept, 2009 3:00pm13 Oct
3、, 2009 3:00pm16 Nov, 2009 3:00pmPhase 1Phase 2Phase 3Phase 4COMP231 Project53. Hand inER Diagram (hard-copy)A suggested answer released after the deadlineDatabase Application (soft-copy)Insert data into DB Programming in Java and JDBCRelational schema and the Proof of 3rd normal form (hard-copy)A su
4、ggested answer released after the deadlineSample Data and Data Reader released after the deadlineSystem Interface with Stubs (i.e. Your Database Application with Stubs) (soft-copy)Programming in JavaPhase 1Phase 2Phase 3Phase 410%20%20%50%COMP231 Project64. WorkflowPhase 1 DeadlinePhase 1Phase 2Phas
5、e 3Phase 4Phase 2DeadlinePhase 3DeadlinePhase 4DeadlinetodayJava Program (Stubs)Relation and 3NFJava Program (Full)ERSuggested ER ReleasedSuggested Relation and 3NF ReleasedData Set and Data Reader Released No Late Submission is allowed for Phase 1 and Phase 3Late submission is allowed for Phase 2 a
6、nd Phase 4COMP231 Project75. Grading PolicyPhase 4The time for the insertion of DB should NOT be too slow Within 10 seconds is OK.More than 10 seconds insertion may lead to mark deduction!Same for query from the database Possible Reason: In JDBC, some students call the method of “Opening Connection”
7、 (i.e. getConnection) many timesThe method “getConnection” should be called once.50%COMP231 Project86. StubsER Diagram (hard-copy)A suggested answer released after the deadlineDatabase Application (soft-copy)Insert data into DB Programming in Java and JDBCRelational schema and the Proof of 3rd norma
8、l form (hard-copy)A suggested answer released after the deadlineSample Data and Data Reader released after the deadlineSystem Interface with Stubs (i.e. Your Database Application with Stubs) (soft-copy)Programming in JavaPhase 1Phase 2Phase 3Phase 410%20%20%50%COMP231 Project96. StubsTop-down design
9、 in software engineering cyclePropertyCan be executedDoes something to tell you that it can be executed successfullyDoesnt (yet) do the details of what you really want it to doHas the structure of how you want it doneCOMP231 Project106. StubsNeed to refine at the end of the software engineering cycl
10、eIn this project,No JDBC is required in Phase 2No Data Reading Part is required in Phase 2Advantages:Implement the system interface in the early stageFocus on the Java implementation in Phase 2Focus on the REAL implementation (JDBC) in Phase 4Allow the new learners to write simple Java programsCOMP2
11、31 Project116. Stubs - Arithmetic OperationsArithmetic OperationsAdditionSubtractionMultiplicationDivisionCOMP231 Project126. Stubs - Arithmetic OperationsArithmetic OperationsAddition/ to add two numbers, no1 and no2public int addition(int no1, int no2)/ temporarily, we always return 12 return 12;C
12、OMP231 Project136. Stubs - Arithmetic OperationsArithmetic OperationsSubtraction/ to subtract number no1 from number no2public int subtraction(int no1, int no2)/ temporarily, we always return 13 return 13;COMP231 Project146. Stubs - Arithmetic OperationsArithmetic OperationsMultiplication/ to multip
13、ly number no1 by number no2public int multiplication(int no1, int no2)/ temporarily, we always return 14 return 14;COMP231 Project156. Stubs - Arithmetic OperationsArithmetic OperationsDivision/ to divide number no1 by number no2public int division(int no1, int no2)/ temporarily, we always return 15
14、 return 15;COMP231 Project166. Stubs - Arithmetic OperationsArithmetic OperationsInterface / to display the arithmetic menupublic static void main(String args)/ here, we need to implement for the flow/ display the menu/ allow the user to choose one of the functions in the menu/ check the input and c
15、all the correspondence functionCOMP231 Project176. Stubs - BankBankCustomer Interface Bank Interface Display Balance Display Record Address Update Given an account no,display the balanceGiven an account no,display the transaction recordsGiven an account no and the address (to be updated), update the
16、 address of the customer who has that accountCOMP231 Project186. Stubs - BankBankCustomer Interface Display Balance Given an account no,display the balance/ to display the balance of the account with account nopublic void displayBalance(String accountNo)/ temporarily, we always display 1000System.ou
17、t.println(“Balance:”+1000); return;COMP231 Project196. Stubs - BankBankCustomer Interface / to display the transaction recordspublic void displayRecord(String accountNo)/ temporarily, we always display two records/ Record 1System.out.println(“Date:”+”2009-09-12”);System.out.println(“Debit:”+350);/ R
18、ecord 2System.out.println(“Date:”+”2009-09-13”);System.out.println(“Debit:”+350);return;Display Record Given an account no,display the transaction recordsCOMP231 Project206. Stubs - BankBankBook Interface / to update the address of the customer who has that accountpublic void addressUpdate(String ac
19、countNo, String address)/ temporarily, we do nothing except prompting a messageSystem.out.println(“The update is successful!”);return;Address UpdateGiven an account no and the address (to be updated), update the address of the customer who has that accountCOMP231 Project216. Stubs - BankBankInterfac
20、e / to display the bank interfacepublic static void main(String args)/ here, we need to implement for the flow/ display the menu/ allow the user to choose one of the functions in the menu/ check the input and call the correspondence functionCombineCOMP231 Project227. DemoDuration: about 20 minsExecu
21、te on two kinds of data setsProvided data setAnother unseen data setCOMP231 Project237. DemoEach group can use at most one coupon regardless of the total number of members in the group.Each coupon can be used for one checking stepPlease bring the coupon to the demonstration.COMP231 Project248. Proje
22、ct TopicAn ordering system for a supermarket All the information on items, customers and purchase information are stored and accessed onlineCOMP231 Project258. Project TopicItemIIDItem NameUnit PriceNo of Units AvailableCOMP231 Project268. Project TopicCustomerCustomer IDCustomer NameDelivery Addres
23、sCredit Card NoCOMP231 Project278. Project TopicOrderOrder IDCustomer IDOrder DateItems OrderedChargeDelivery Status (Y/N)COMP231 Project289. Important PointE.g. Partial Match or Exact MatchInput: “ABC%”, Partial Match: “ABC Milk” may be the outputInput: “%ABC%”, “%ABC” or “ABC%”Exact match: “ABC”CO
24、MP231 Project2910. SampleER Diagram (hard-copy)A suggested answer released after the deadlineDatabase Application (soft-copy)Insert data into DB Programming in Java and JDBCRelational schema and the Proof of 3rd normal form (hard-copy)A suggested answer released after the deadlineSample Data and Dat
25、a Reader released after the deadlineSystem Interface with Stubs (i.e. Your Database Application with Stubs) (soft-copy)Programming in JavaPhase 1Phase 2Phase 3Phase 410%20%20%50%COMP231 Project3010. SamplePhase 1 and Phase 3ER-diagram, Relation and proof of the 3rd normal formE.g. Student takes a co
26、urseStudentStudent ID UniqueStudent NameCourseCourse ID UniqueCourse NameStudentStudent IDStudent NameCourseCourse IDCourse NameCOMP231 Project3110. SampleE.g. Student takes a courseStudentStudent IDStudent NameCourseCourse IDCourse NameTakeAssumption:Each student takes at least one courseEach course is taken by at least one studentSchemaStudentCourseTake(Student ID, Student Name)(Course ID, Course Name)(Student ID, Course ID)Phase 1 and Phase 3ER-diagram, Relation and proof of the 3rd normal formCOMP231 Project3210. SampleE.g. Student takes a courseAssump
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026北科大招聘面试题及答案
- 2025年中国玻璃纤维格栅土工布市场调查研究报告
- 2025年中国烤漆面油墨市场调查研究报告
- 2025年中国润滑油专用滤油机市场调查研究报告
- 2025年中国汽车铸造部件市场调查研究报告
- 2025年中国拆托槽钳市场调查研究报告
- 2025年中国乔其市场调查研究报告
- 《传感器与检测技术》课件 第十章光纤传感器
- 机械产品数字化设计 课件 模块三项目九零件工程图绘制
- 排痰护理中的呼吸肌训练
- 2026中考道法万能答题模版
- 2025年湖南省高中学业水平合格性考试英语卷试题(含答案)
- 紧固件模具维护调试技师岗位招聘考试试卷及答案
- 2026年安全生产月公开课:人人讲安全 个个会应急查找身边安全隐患
- 院前急救与院内救治应急演练方案(绕急诊)
- 2025内蒙古乌海市国创数字产业发展有限责任公司招聘拟聘用人员笔试历年常考点试题专练附带答案详解
- 医疗器械经营企业质量管理体系文件(2025版)(全套)
- 职业病诊断医师资格(化学中毒类)一次通关必刷题库(附答案)
- 专项突破:三角形中的倒角模型之A字、8字、燕尾模型(解析版)
- DB34∕T 4963-2024 区域医疗智慧急救协同平台建设指南
- 四川省泸州市2024-2025学年高一年级下册期末考试 语文试题(含解析)
评论
0/150
提交评论