Artificial Intelligence Project: OOP System for ABC Stationary Company

Verified

Added on  2021/08/12

|31
|1680
|187
Project
AI Summary
This project details the design and implementation of an Object-Oriented Programming (OOP) system for ABC Stationary Company. The project begins with an explanation of core OOP concepts such as classes, objects, inheritance, abstraction, polymorphism, and encapsulation. It then moves on to the system design phase, including use case and class diagrams to visually represent the system's functionality and structure. A key component is the login form, with administrator and HR access, along with forms for user registration, employee data entry, updating employee details, and salary calculations. A comprehensive test plan is also provided, which includes test cases for different scenarios, along with expected results and screenshots. The project concludes with a discussion of the system's strengths (high security, data backups, improved efficiency) and weaknesses (lack of internet access), emphasizing the role of OOP in creating a more efficient and secure system compared to the previous manual system. The project includes a GNATT chart for project management and references supporting the design and concepts.
Document Page
1
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Task 01
OOP Concepts
Class
Every class has a class name and class scope. It determines by “{ }”. A class is a destination
from which objects are created. It represents the set of properties or methods or functions that
are common to all objects of one type. Objects are created inside a Class and it comprises
methods and functions which are in one type and common to all objects.
(Anon., n.d.)
DBConnection
DBConnection is used to connect the ‘JDBC-ODBC Bridge’ between the system and the storing
software (SQL Server). DBConnection is basically used to store the data which is input by the
user. When the data is input the DBConnection will pass to the SQL Server to store the data.
Through this the data which known as insert values, retrieve values will be process with the
database. If there is an error with storing, the DBConnection must be rechecked.
Figure 1
Object
Object is
known as a
real-world
thing and it is
2
Document Page
an entity which has state and behavior. The state is represented as properties and the behavior
represented as functions.
For an instance, a car, a bike and any physical or logical thing can be describing as an object.
The states/ properties/ attributes of a car can be illustrated by Color, Speed, Size, Engine and so
on. Moreover, the behavior/ Functionalities of a car will be drive, turn right or left and so on.
(Anon., n.d.)
Figure 2
Inheritance
The classes are inherited by a super class or super classes. In this concept the sub classes are
inherited the variables and other methods from the parent class. This is a crucial part of OOP.
The inheritance in the sense of a class is created upon an existing class and when the new class
inherits from the existing class, the methods and fields of parent class can be used and it is
known as reusability.
Inheritance can be represented the IS-A relationships and can be known as a parent-child
relationship as well.
(Anon., n.d.)
There is diverse type of inheritance
Single
Multi-level
Hierarchical
Hybrid
Multiple
3
Document Page
Figure3
Abstraction
An abstraction is used to hide data in order to reduce the unnecessary features of the system and
make the system as a user friendly. Abstraction depicts the only essential components and the
non-essential components for the user will be hidden. Hence the implementation will be hidden
from the user and only the functionalities will be provided.
(Anon., n.d.)
Polymorphism
Polymorphism can be defined as a concept which is performed a single action in diverse ways.
There are two types in Polymorphism:
Overloading – In here same methods are separating inside a class
Overriding – Same methods are repeating inside the subclass and the superclass
(Anon., n.d.)
4
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Encapsulation
Encapsulation is the concept where data are hidden, in order to hide the complexity of the
system. A completed encapsulated class can be created by making all the data methods of the
class private. In here the variables of a class will be hidden from other classes and the hidden
class can be retrieved only via the methods of the existing class. In Encapsulation there are
different access modifiers:
Private – the property which is accessible only within the class
Public – the property which can access anywhere in the program
Protector – the property which can access anywhere only within package
(Anon., n.d.)
5
Document Page
Task 02
Use case diagram
Figure 4
6
Document Page
Class Diagram
Figure5
7
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Task 03
Figure6
This is the login form where the user can login either as an administrator (admin) or a HR.
Figure8
Figure 7
Here in this form correct user ID and the password should be entered and select the user type
before clicking the login button.
8
Document Page
Figure9
This window will appear when login as an admin.
Figure 10
When the administrator has logged on he can register another person as an administrator or a
HR using this form.
9
Document Page
Figure 11
A logged on administrator will be provided the opportunity to enter the details of employee,
using the above window.
10
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Figure 12
This shows properly filled format of the registration window.
11
Document Page
Figure 13
12
chevron_up_icon
1 out of 31
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]