logo

Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time

   

Added on  2024-05-29

62 Pages5053 Words317 Views
 | 
 | 
 | 
Programming in Java
1
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_1

Contents
List of figures........................................................................................................................................3
List of tables..........................................................................................................................................4
Introduction...........................................................................................................................................5
LO1: Understand the principles of programming in java.......................................................................6
1.1 Java has many features including Object Oriented, Platform Independent, Robust, Interpreted,
and Multi-threaded. Discuss the principles, characteristics, and features of programming in Java?. .6
1.2 Critically evaluate the environmental flexibility of programming in Java and thus in this context
explain the role of Java Virtual Machine (JVM)................................................................................6
LO2 Be able to design Java solutions....................................................................................................8
2.1 Design a Java programming solution for the given problem scenario using UML diagrams.
Your model should include use case diagrams, class diagrams with attributes and operations of each
class and the relationship, including inheritance if any between classes. Define clearly each class,
main methods, and properties............................................................................................................8
2.2 Identify the components and file structures incorporated in the Java project file required to
implement the application................................................................................................................10
LO3 Be able to implement Java solutions...........................................................................................12
3.1 Using OOP principles (Abstraction, Inheritance, polymorphism, classes, attributes, methods,
objects etc), implement the Carpeting calculator with all the functionalities listed in the
requirements based on your design in task 2....................................................................................12
3.2 Define how the components (the classes you define, the UI and the class libraries) are related to
implementing the design requirements............................................................................................13
3.3 Elaborate by example the implementation of object behaviors using structures to meet the
design algorithms as implemented in 3. 1 above..............................................................................24
3.4 Demonstrate with evidence how you implemented effective exception handling and error
reporting in the application..............................................................................................................32
3.5 Netbeans is a rich IDE, demonstrate your effective command in the usage of the IDE to develop
your solution....................................................................................................................................39
LO4 Be able to test and document Java solutions................................................................................40
4.1 Critically review and test the overall performance of your system. You have to create the
appropriate test cases to test the functional and non-functional requirements of the application
produced..........................................................................................................................................40
4.2 Analyse the actual results (form 4.1 above) against expected results and identify any
discrepancies and explain with evidence how would you resolve these...........................................45
4.3 Distribute your application among actual users for evaluation. To this end, you have to prepare
a feedback form for the users to record their experience/feedback in the use of your application.
Collate their feedback, critically evaluate and analyze their feedback and based on their feedback
make recommendations for further improvements..........................................................................49
4.4 Create clear user documentation for the solution. Where necessary, include relevant screenshots
and instructions. This can be a help file integrated with the application which can be accessed via a
menu system (e.g. Under Help menu item)......................................................................................50
2
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_2

4.5 Create technical documentation for the solution. You are also required to document all the
technical steps used to develop and deploy your solution. This will be used for the support and
maintenance of your system............................................................................................................52
Conclusion...........................................................................................................................................60
References...........................................................................................................................................61
List of figures
Figure 1 JVM Diagram............................................................................................................................6
Figure 2 use case diagram........................................................................................................................8
Figure 3 class diagram.............................................................................................................................9
Figure 4 Example of GI interface..........................................................................................................11
Figure 5 details entered for room 1........................................................................................................12
Figure 6 calculating wood flooring methods.........................................................................................13
Figure 7 displayed calculations..............................................................................................................14
Figure 8 details for room 2....................................................................................................................14
Figure 9 calculations of wood flooring for room 2................................................................................15
Figure 10 payment methods...................................................................................................................16
Figure 11 payment through debit card...................................................................................................17
Figure 12 payable amount shown..........................................................................................................18
Figure 13 payment through credit card..................................................................................................19
Figure 14 showing aggregate values......................................................................................................20
Figure 15 cash method...........................................................................................................................21
Figure 16 payable amount by cash........................................................................................................22
Figure 17 code 1....................................................................................................................................23
Figure 18 code 2....................................................................................................................................24
Figure 19 code 3....................................................................................................................................24
Figure 20 code 4....................................................................................................................................25
Figure 21 code 5....................................................................................................................................25
Figure 22 code 6....................................................................................................................................26
Figure 23 code 7....................................................................................................................................27
Figure 24 code 8....................................................................................................................................28
Figure 25 code 9....................................................................................................................................28
Figure 26 code 10..................................................................................................................................29
Figure 27 code 11..................................................................................................................................29
3
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_3

Figure 28 exception handling 1.............................................................................................................30
Figure 29 exception handling 2.............................................................................................................31
Figure 30 exception handling 3.............................................................................................................32
Figure 31 exception handling 4.............................................................................................................33
Figure 32 exception handling 5.............................................................................................................34
Figure 33 exception handling 6.............................................................................................................34
Figure 34 exception handling 7.............................................................................................................35
Figure 35 test case 1...............................................................................................................................37
Figure 36 test case 2...............................................................................................................................37
Figure 37 test case 3...............................................................................................................................38
Figure 38 test case 4...............................................................................................................................39
Figure 39 test case 5...............................................................................................................................39
Figure 40 input details for room............................................................................................................40
Figure 41 error occur while entering.....................................................................................................41
Figure 42 again enter the values............................................................................................................42
Figure 43 correct output.........................................................................................................................43
Figure 44 project open...........................................................................................................................44
Figure 45 expand files............................................................................................................................44
Figure 46 expand sub-files.....................................................................................................................44
Figure 47 run file...................................................................................................................................45
Figure 48 search netbeans......................................................................................................................46
Figure 49 download netbeans 1.............................................................................................................47
Figure 50 download option....................................................................................................................47
Figure 51 installation.............................................................................................................................48
Figure 52 configuring............................................................................................................................49
Figure 53 IDE installer..........................................................................................................................50
Figure 54 agreement..............................................................................................................................51
List of tables
Table 1 test case table............................................................................................................................35
Table 2 feedback table...........................................................................................................................42
4
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_4

Introduction
This project report is developed and designed to make an application for Wood Flooring Services in
which organization members can estimate the aggregate values of the area, cost and time required for
particular length and breadth. This application is implemented using Java programming in NetBeans
utilizing the concepts of object-oriented programming. This application will also clear the testing part
and validation part with some test cases and the user will take feedbacks for this application from
different persons. This report consists some diagrams which represent the classes and attributes to
determine the application methodology and also some screenshots of GUI interface which is designed
for Wood Flooring Service.
5
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_5

LO1: Understand the principles of programming in java
1.1 Java has many features including Object Oriented, Platform Independent,
Robust, Interpreted, and Multi-threaded. Discuss the principles, characteristics,
and features of programming in Java?
Java language is a high-level language. A high-level language is known for providing
comprehensible sentence structures to programming whereas low-level language gives machine
instructions which are not easy to understand. Java utilizes the human understandable language
for programming orders.
Characteristics or features of Java:
Object-Oriented Programming: If our concern is illuminated as far as classes and objects then it
is known as Object Oriented Programming. In objects Oriented programming each issue is
understood as far as classes and objects.
Some features of objects oriented programming are as follows:
Encapsulation: Encapsulation implies bundling all class information and code into a class which
anticipates it for outside access and abuse.
Inheritance: If a class is inherited from another class then it is known as Inheritance such derived
class is inherited from base class. Utilizing legacy we can expand highlights of a class.
Polymorphism: Polymorphism implies one name numerous structures. Utilizing polymorphism
can characterize diverse usefulness for a class legacy progressive system with the same name.
Distributed: Java gives distributed applications usefulness which empowers us to run diverse parts
of an application on various machines. Java RMI (Remote technique summon) and EJB
(Enterprise Java Beans) empowers us to make appropriated applications.
Robust: It means strong or solid in which Java gives strong memory server administration. Java
doesn't give pointers to keep away from security issues. It additionally gives some garbage
accumulation and robust bugs and checks of their types.
Portability: It means that any Java program can run and execute successfully without any errors
on any platform like Windows, Linux and Mac OS (Corsaro, A & D.C, 2002).
6
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_6

1.2 Critically evaluate the environmental flexibility of programming in Java and
thus in this context explain the role of Java Virtual Machine (JVM).
There are various environments where java programming is used as mobile devices, hardware
programming, software development and many more. Java programming is very easy to adapt and for
development of various application as it’s platform independent so it can run on any OS and it is very
secure and robust which can be used for payment related software’s to provide security of data
information.
Role of JVM in java:
The JVM (Java Virtual Machine) is a type of abstraction layer between Java application and the
underlying platform. The JVM acts as a processor or virtual machine. The JVM allows the
functionality of portability in which it can run on multiple platforms. The JVM provides the
functionality of writing code one time and uses code one time. JVM is part of JRE (Java Runtime
Environment). JRE is responsible to enable java bytecode for running on any platform. Portability of
java programs is fully dependent on JVM. The JVM handles the communication between application
layer and platform. (Liang, S & G, 1998).
Figure 1 JVM Diagram
7
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_7

LO2 Be able to design Java solutions
2.1 Design a Java programming solution for the given problem scenario using
UML diagrams. Your model should include use case diagrams, class diagrams
with attributes and operations of each class and the relationship, including
inheritance if any between classes. Define clearly each class, main methods, and
properties.
The below figures represents Use case diagram and a class diagram or relationship diagram in which
all entities and its attributes are defined to understand easily. The programming language which is
used for this project is java which utilizes most of the OOPs concepts which enhances the
development, implementation and provide a runnable application to the user for its use. The entities
and its attributes are specifically determined by following UML and class diagram which uses the
class name, methods and its all attributes related to program and class.
There are so many types of diagram which can easily state all the process or working of whole
application or describes the whole project blueprint in proper manner such as state machine diagram
explains the process in the form of life cycle, activity diagram explains the application providing
working of each entity and its attributes, use case diagram is used to determine all the entity and its
connected attributes with the main actor of an application, sequence diagram is utilized for
determining all the steps of process in sequence manner and some diagram are timing,
communication, interaction and many more which uses the ER diagram functionalities (Shen, W & S,
2003).
8
Wood Flooring Services: A Java Application for Estimating Area, Cost, and Time_8

End of preview

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

Related Documents