logo

Object-Oriented Programming Coursework

   

Added on  2023-04-10

23 Pages2885 Words317 Views
 | 
 | 
 | 
Page 0 of 23
[Your name or enrolment number]
University of Greenwich
[Date]
COMP1752 – Object-Oriented Programming
Object-Oriented Programming Coursework_1

Table of Contents
1 Introduction..............................................................................................................................3
2 Class Diagram..........................................................................................................................4
2.1 The Class Diagram............................................................................................................4
2.2 A Brief Explanation of the Diagram.................................................................................4
3 The Code for the Extra Classes Created..................................................................................5
3.1 Class ................................................................................................................................5
3.2 Class ................................................................................................................................5
3.3 Class ................................................................................................................................5
3.4 Class ................................................................................................................................5
4 White Box Testing...................................................................................................................6
4.1 Testing for class ..............................................................................................................6
4.2 Testing for class ..............................................................................................................6
4.3 Testing for class ..............................................................................................................6
4.4 Testing for class ..............................................................................................................6
5 Screen Shots of the Program Working....................................................................................7
5.1 Screen 1 - ........................................................................................................................7
5.2 Screen 1 – A brief description...........................................................................................7
5.3 Screen 2 - ........................................................................................................................7
5.4 Screen 2 – A brief description...........................................................................................7
5.5 Screen 3 - ........................................................................................................................7
5.6 Screen 3 – A brief description...........................................................................................7
6 The Evaluation.........................................................................................................................8
6.1 What went well?................................................................................................................8
6.2 What went less well?.........................................................................................................8
6.3 What was learned?............................................................................................................8
6.4 How would a similar task be completed differently?.......................................................8
6.5 How could the course be improved?.................................................................................8
7 Self-Grading............................................................................................................................9
Page 1 of 23
Object-Oriented Programming Coursework_2

1 INTRODUCTION
The project done is a java based coursework recording system which is used to record classwork
notes and save then in form of module, coursework and the date under which the work or lecture
took place. The program allows the user to run it on computers which runs on a windows
operating system.
The application has a very interactive user interface that the users of the system can be able to
interact with the program easily and effectively. The features which I have implemented in the
system includes the following.
1. The style for programming is java programming language in netbeans IDE.
2. The program is able to record the lectures in the class and save the same on a text file
which can even be opened I a word file.
3. The program has a search engine which allows the user to find relevant information
easily.
4. The program allows the user to add note whenever they wants to in accordance with the
module and the coursework of the notes.
5. The program is a very effective closing and exiting program option where on closure, it
only affects the panel under effect and the main panel remains open till next closure.
6. It has an option where the courses can be viewed and chosen before the notes are
recorded and saved.
Page 2 of 23
Object-Oriented Programming Coursework_3

2 CLASS DIAGRAM
2.1 THE CLASS DIAGRAM
Page 3 of 23
COURSEWORK
+coursework
+course
+Searchkeyword
+exit
+NewNote
+model();
+view();
+controller();
CWDetails
+filechoose
+Return2Notes
+close
+exit
+New
+model();
+view();
+controller();
AllNotes
+readTextFile
+allNotes
+readAllNotes();
+writeAllNotes;
CommonCode
+userName
+appDir
+os
+fileSeparator
+CommonCode();
+close();
Note
+NoteID
+Course
+Dayte
+Note
+setNoteID(max);
+ setCourse(crs);
+setDayte();
+ setNote(nt);
Object-Oriented Programming Coursework_4

2.2 A BRIEF EXPLANATION OF THE DIAGRAM
From the class diagram seen above, the coursework class is taken as the main class since it’s the
class that contains the main class. All other classes depends on the main class for execution. In
this case, during the execution of the program, the coursework class id first loaded which has the
features that allows user of the program to search the keywords of the program, check the
courses in the module, open a new note to write the lecture notes on.
The class named CWDetails allows he user of the system to choose the files which were
previously saved in form on text for easy retrieval. The class is also created on a user interface
for easy and quick navigation by the user and also making the system more interactive.
The class AllNotes is used for the execution of the read and write of the text files. To read and
write on the system as the notes are being saved. The design was chosen this way in order to
make it easier for the system to be navigated. The classes and opening of different user interfaces
makes it easy for the user to distinguish between the different and various functionalities of the
system.
Page 4 of 23
Object-Oriented Programming Coursework_5

3 THE CODE FOR THE EXTRA CLASSES CREATED
Add the code you have written for each of the classes implemented here. Copy and paste relevant
code - actual code please, not screen shots! Make it easy for the tutor to read. Add explanation if
necessary – though your in-code comments should be clear enough. Please DO NOT just DUMP
all the code you’ve written! Include and describe the bits that specifically implement the features
actually implemented.
3.1 CLASS NOTE
public class Note extends CommonCode {
private int noteID = 0;
private String course = "";
private String dayte = "";
private String note = "";
public Note() {
}
public Note(int max, String crs, String nt) {
setNoteID(max);
setCourse(crs);
setDayte();
setNote(nt);
}
public Note(int nid, String crs, String dt, String nt) {
setNoteID(nid);
setCourse(crs);
setDayte(dt);
setNote(nt);
}
Page 5 of 23
Object-Oriented Programming Coursework_6

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents