Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Exam (elaborations) Computer Programming

Rating
-
Sold
-
Pages
100
Grade
A+
Uploaded on
05-04-2022
Written in
2021/2022

It is all about Programming, JAVA and GUI class diagram.

Content preview

Module Code & Module Title
CS4001NT Programming


Assessment Weightage & Type
30% Individual Coursework


Year and Semester
2021 Spring


Student Name: Bipika Khanal
London Met ID: 20048550
College ID: NP05CP4S210172
Assignment Due Date: 8/20/2021
Assignment Submission Date: 8/20/2021


I confirm that I understand my coursework needs to be submitted online via Google Classroom under the relevant
module page before the deadline in order for my assignment to be accepted and marked. I am fully aware that late
submissions will be treated as non-submission and a marks of zero will be awarded

,Table of Contents
Introduction ................................................................................................................... 1
Components of Java ..................................................................................................... 1
Java Virtual Machine (JVM) ...................................................................................... 1
JDK (Java Development Kit) ..................................................................................... 2
JRE (Java Runtime Environment) ............................................................................ 2
GUI (Graphic User Interface) ........................................................................................ 2
Class Diagram ............................................................................................................... 3
Purpose of Class Diagram ............................................................................................ 3
Pseudocode ................................................................................................................... 9
Method Description ..................................................................................................... 40
1. Attributes Getter............................................................................................. 40
a. Academic Course........................................................................................ 40
b. NonAcademicCourse ..................................................................................... 42
2. InitializeFrame ................................................................................................ 44
3. InitializeGUI..................................................................................................... 44
4. Action performed (ActionEvent ae) .............................................................. 44
5. Clear Button (Academic Course) .................................................................. 44
6. Clear Button (NonAcademic Course) ........................................................... 44
7. Add Button (Academic Course) .................................................................... 44
8. Add Button (NonAcademic Course) ............................................................. 45
9. Register Button (Academic Course) ............................................................. 45
10. Register Button (Academic Course) ............................................................. 45
11. Display Button (Academic Course) .............................................................. 45
12. Display Button (NonAcademic Course) ....................................................... 45
13. Remove Button (Academic Course) ............................................................. 46
14. Back Button (Academic Course) .................................................................. 46
15. Back Button (Academic Course) .................................................................. 46
Testing ......................................................................................................................... 47
1. Command Prompt Test .................................................................................. 47
2. Popup message/Data Added check of Academic Course. ......................... 48
3. Popup message/Data Added check of NonAcademic Course. .................. 49
4. Register Academic Course............................................................................ 51

, 5. Register NonAcademic Course..................................................................... 52
6. Display Academic Course ............................................................................. 53
7. Display NonAcademic Course ...................................................................... 54
8. Removed (CourseID) NonAcademic Course................................................ 55
9. Clear Academic /NonAcademic Course ....................................................... 56
10. Back Academic Course ................................................................................. 57
11. Back NonAcademic Course .......................................................................... 59
Error Detection and Correction .................................................................................. 61
Error Detection 1 Syntax Error ............................................................................... 61
Error Detection 2 Semantic Error ........................................................................... 63
Error Detection 3 Logical Error .............................................................................. 64
Run Time Error......................................................................................................... 66
Conclusion ................................................................................................................... 67
Appendix ...................................................................................................................... 68
References ................................................................................................................... 96




Table OF Figure
Figure 1 class diagram BlueJ .......................................................................................... 4
Figure 3 Command Prompt Test ................................................................................... 47
Figure 4 Test Successful ............................................................................................... 48
Figure 5 popup message check(AcademicCourse) ....................................................... 49
Figure 6 Table 3 popup message check(NonAcademicCourse) ................................... 50
Figure 7 Register Academic Course.............................................................................. 51
Figure 8 Register NonAcademic Course ....................................................................... 52
Figure 9 Display Academic Course ............................................................................... 53
Figure 10 Display NonAcademic Course....................................................................... 54
Figure 11 Removed courseID NonAcademic Course .................................................... 55
Figure 12 Clear Academic/NonAcademicCourse .......................................................... 56
Figure 13 Clear Academic/NonAcademicCourse .......................................................... 57
Figure 14 Back Academic Course ................................................................................. 58
Figure 15 Back Academic Course ................................................................................. 58
Figure 16 Back NonAcademic Course .......................................................................... 59
Figure 17 Back NonAcademic Course .......................................................................... 60
Figure 18 Error Detection 1 Syntax Error ...................................................................... 61
Figure 19 Error Correction 1 Syntax Error ..................................................................... 62

, Figure 20 Error Detection 2 Semantic Error .................................................................. 63
Figure 21 Error Correction 2 Semantic Error ................................................................. 63
Figure 22 Error Detection 3 Logical Error ...................................................................... 64
Figure 23 Error Correction 3 Logical Error .................................................................... 65
Figure 24 Error Detection 4 Run Time Error .................................................................. 66
Figure 25 Error Correction 4 Run Time Error ................................................................ 66




Table OF Table

Table 1 Class Diagram .................................................................................................... 8
Table 2 Command Prompt Test .................................................................................... 47
Table 3 popup message check(Academic Course) ....................................................... 48
Table 4 popup message check(NonAcademicCourse) ................................................. 49
Table 5 Register Academic Course ............................................................................... 51
Table 6 Register NonAcademic Course ........................................................................ 52
Table 7 Display Academic Course ................................................................................ 53
Table 8 Display NonAcademic Course .......................................................................... 54
Table 9 Removed courseID NonAcademic Course ....................................................... 55
Table 10 Clear Academic/NonAcademicCourse ........................................................... 56
Table 11 Back Academic Course .................................................................................. 57
Table 12 Back NonAcademic Course............................................................................ 59

Document information

Uploaded on
April 5, 2022
Number of pages
100
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers
£10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
bipikak

Get to know the seller

Seller avatar
bipikak London Metropolitan University
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions