Assignment PROG191 Java Programming Distinction

160 1 0
Assignment PROG191 Java Programming Distinction

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

This exercise hits the mark in java swing programming. This exercise presents a course registration software for students. There is exception handling, strict error handling constraints, file reading and database connection.

ASSIGNMENT FRONT SHEET Qualification BTEC Level HND Diploma in Computing Unit number and title Submission date 23/06/2023 Re-submission Date Date Received 1st submission 23/06/2023 Date Received 2nd submission Student Name Tran Duc Long Student ID GCH210562 Class GCH1106 Assessor name Dinh Duc Manh Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism I understand that making a false declaration is a form of malpractice Student’s signature Grading grid Grade (0-10) 1.1 Page of 159 ❒ Summative Feedback: ❒ Resubmission Feedback: 2.1 Grade: IV Signature: Assessor Signature: Date: Page of 159 Table of Contents I Introduction 11 II Requirement 11 III UI design 13 Login and Register 13 Wireframe Homepage 13 a Subject 14 b Student 14 c Register 15 d Class division 16 IV Implementation 17 Program structure 17 Classes 19 2.1 Package exception 19 a InvalidPersonIdException 20 b InvalidStudentIdException 21 c InvalidNameException 22 d InvalidPhoneNumberException 23 e InvalidEmailException 24 f InvalidDateOfBirthException 26 g InvalidPasswordException 27 Page of 159 2.2 Package model 28 a Account 28 b Subject 31 c Person 34 d Student 40 e Registering 43 f Course 45 2.3 Package controller.sort 46 a SortRegisteringByRegisterTime 47 b SortRegisteringByStudentName 47 c SortStudentByName 48 d SortStudentByStudentIdASC 49 e SortSubjectByNumOfLesson 49 f sortSubjectByName 50 2.4 Package controller 51 2.4.1 InforFilter 51 2.4.2 InforFilterImp 51 2.4.3 DataController 56 2.4.4 DataControllerImp 57 a Methods of reading and writing data to file 57 b Methods of reading and writing data to mySQL in Xampp 59 Page of 159 c Methods sort by criteria 62 d Methods createCourse 64 e Methods search by criteria 65 2.5 Package view 68 a LoginFrm 69 b SignUpFrm 71 c HomeFrm 74 d AddSubjectDialog 89 e AddStudentDialog 91 f AddRegisterDialog 93 g EditStudentDialog 96 h EditSubjectDialog 98 Important algorithms 100 How to handle errors 103 V 4.1 Error when user entered wrong input data 103 4.2 Error when saving file 105 4.3 Error when connect xampp 107 Test 108 Test Junit 108 a DataControllerImpTest 108 b InforFilterImpTest 114 Page of 159 Test plan 116 Testing result 146 Solution 146 VI Screenshots of running program 148 Sign up 148 Login 148 Tab subject 149 3.1 Add subject 150 3.2 Edit subject 151 Tab student 152 4.1 Add student 153 4.2 Edit student 154 Tab register 155 5.1 VII Add register 156 Tab class division 157 Conclusion 158 Page of 159 Table of Figures Figure 1: Wireframe Sign up and login 13 Figure 2: Wirfeframe tab Subject 14 Figure 3: Wireframe tab student 15 Figure 4: Wireframe tab register 16 Figure 5: Wireframe tab Class division 17 Figure 6: My program structure 19 Figure 7: Class InvalidPersonIdException 20 Figure 8: Class InvalidStudentIdException 21 Figure 9: Class InvalidNameException 22 Figure 10: Class InvalidPhoneNumberException 23 Figure 11: Class InvalidEmailException: 25 Figure 12: Class InvalidDateOfBirthException 26 Figure 13: Class InvalidPasswordException 27 Figure 14: Class account in model package 31 Figure 15: Class Subject 34 Figure 16: Class Person 40 Figure 17: Class Student 43 Figure 18: Class Registering 45 Figure 19: Class Course 46 Figure 20: Class SortRegisteringByRegisterTimeEL 47 Figure 21: Class SortRegisteringByRegisterTimeEL 47 Figure 22: Class SortRegisteringByStudentNameAZ 48 Figure 23: Class SortRegisteringByStudentNameZA 48 Figure 24: Class SortStudentByNameASC 48 Figure 25: Class SortStudentByNameDESC 49 Figure 26: Class SortStudentByStudentIdASC 49 Figure 27: Class sortSubjectByNumOfLessonASC 50 Figure 28: Class sortSubjectByNumOfLessonDESC 50 Page of 159 Figure 29: Class sortSubjectByNameASC 50 Figure 30: Class sortSubjectByNameDESC 51 Figure 31: Interface InforFilter 51 Figure 32: Method isStudentIdValid 52 Figure 33: Method isPersonIdValid 52 Figure 34: Method isNameValid 53 Figure 35: Method isEmailValid 53 Figure 36: Method isPhoneNumberValid 54 Figure 37: Method isDateOfBirthValid 54 Figure 38: Method isPasswordValid 55 Figure 39: Interface DataController 57 Figure 40: Method writeToFile 58 Figure 41: Method readDataFromFile 59 Figure 42: Method connect xampp with netbeans 60 Figure 43: Method login 61 Figure 44: Method Register account 62 Figure 45: Methods sort by critiea of Subject 63 Figure 46: Methods sort by critiea of Student 63 Figure 47: Method sort by critiea of Registering 64 Figure 48: Method createCourse 65 Figure 49: Methods search by critiea of Subject 66 Figure 50: Method search by critiea of Student 67 Figure 51: Method search by critiea of Registering 68 Figure 52: Method addActionListener 69 Figure 53: Method actionPerformed 69 Figure 54: Method loadData 70 Figure 55: Method loginSystem 71 Figure 56: Methods catch event 72 Figure 57: Method registerAccounts 73 Figure 58: Constructor in HomeFrm 74 Page of 159 Figure 59: Methods catch events in HomeFrm 77 Figure 60: Method loadData 77 Figure 61: Method showData 78 Figure 62: Methods to display the Add forms 80 Figure 63: Methods add callback object 81 Figure 64: Methods to display forms Update 81 Figure 65: Methods edit callback object 82 Figure 66: Methods remove data in tables 83 Figure 67: Methods sorting data by critiea 84 Figure 68: Methods refresh data in tables 85 Figure 69: Methods search data by critiea 89 Figure 70: Methods AddSubjectDialog 89 Figure 71: Method ClearInputData 90 Figure 72: Method addNewSubject 90 Figure 73: Constructors of AddStudentDialog form 91 Figure 74: Method addNewStudent 93 Figure 75: Constructors of addRegisterDialog form 94 Figure 76: Method searchSubject 95 Figure 77: Method searchStudent 95 Figure 78: Method addNewRegister 96 Figure 79: Method editStudent 98 Figure 80: method showData 99 Figure 81: Method editSubject 99 Figure 82: Method searchSubjectByName 100 Figure 83: Method searchSubjectByLessonRange 102 Figure 84: Validate process Sign Up account 103 Figure 85: Input data of Student 104 Figure 86: Process write data to file 105 Figure 87: Process read data from file 106 Figure 88: Process connect netbeans to xampp 107 Page of 159 Figure 89: Contructor Class test DataControllerImpTest 109 Figure 90: Methods to test methods sort and search in DataControllerImp class 113 Figure 91: Result test methods in class DataControllerImp by Junit 114 Figure 92: Contructor Class test InforFilterImpTest 114 Figure 93: Methods to test validate data in InforFilterImp Class 116 Figure 94: Result test methods in class InforFilterImp by Junit 116 Figure 95: Edit code method isNameValid 147 Figure 96: Final test results 147 Figure 97: Sign up form 148 Figure 98: Login form 149 Figure 99: Screenshot of subject tab 150 Figure 100: Screenshot of add subject 151 Figure 101: Screenshot of edit subject 152 Figure 102: Screenshot of student tab 153 Figure 103: Screenshot of add student 154 Figure 104: Screenshot of edit student 155 Figure 105: Screenshot of Register tab 156 Figure 106: Screenshot of add a new Register 157 Figure 107: Screenshot of class division tab 158 Page 10 of 159

Ngày đăng: 24/02/2024, 01:58

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan