logo

Wooden Flooring Calculator: Estimate Your Flooring Costs and Time

   

Added on  2024-06-04

69 Pages5351 Words369 Views
 | 
 | 
 | 
Programming in Java
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_1

Contents
List of figures...........................................................................................................................................2
List of tables.............................................................................................................................................3
Introduction..............................................................................................................................................4
LO1..........................................................................................................................................................5
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?. .5
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..........................................................................................................................................................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........................................................................................................................................................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..............................................................................................12
3.2 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................................................................................................................34
3.5 Netbeans is a rich IDE, demonstrate your effective command in the usage of the IDE to develop
your solution......................................................................................................................................40
LO4........................................................................................................................................................41
1
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_2

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.............................................................................................................................................41
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...........................................46
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............................................................................53
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).......................................................................................53
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..............................................................................................................55
Conclusion.............................................................................................................................................61
References..............................................................................................................................................62
List of figures
Figure 1 use case daigram........................................................................................................................8
Figure 2 Class Diagram...........................................................................................................................9
Figure 3 User interface for calculation and input values.......................................................................10
Figure 4 interface of room 1..................................................................................................................11
Figure 5 value inputted in room 1..........................................................................................................12
Figure 6 calculation for room 1.............................................................................................................13
Figure 7 interface of room 2..................................................................................................................14
Figure 8 calculation for room 2.............................................................................................................15
Figure 9 selection of payment gateway.................................................................................................16
Figure 10 estimation for payment by cash mode...................................................................................17
Figure 11 payment by cash mode.........................................................................................................18
Figure 12 estimation for payment by debit card....................................................................................19
Figure 13 payment by debit card...........................................................................................................20
2
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_3

Figure 14 estimation for payment by credit card...................................................................................21
Figure 15 payment by credit card..........................................................................................................22
Figure 16 define variables......................................................................................................................23
Figure 17 source code for calculate area...............................................................................................24
Figure 18 conditions for cash.................................................................................................................25
Figure 19 payment mode amount calculation........................................................................................26
Figure 20 declare values to variabkes....................................................................................................27
Figure 21 input values............................................................................................................................28
Figure 22 show error for invalid values.................................................................................................29
Figure 23 calculation of the area, cost and time....................................................................................30
Figure 24 calculate the area...................................................................................................................31
Figure 25 calculates time and cost.........................................................................................................32
Figure 26 validation 1............................................................................................................................33
Figure 27 validation 2............................................................................................................................34
Figure 28 validation 3............................................................................................................................35
Figure 29 validation 4............................................................................................................................36
Figure 30 validation 5............................................................................................................................37
Figure 31 validation 6............................................................................................................................38
Figure 32 test case 1...............................................................................................................................39
Figure 33 test case 2...............................................................................................................................40
Figure 34 test case 3...............................................................................................................................41
Figure 35 test case 4...............................................................................................................................42
Figure 36 test case 5...............................................................................................................................43
Figure 37 test case 6...............................................................................................................................44
Figure 38 interface to input data for room 1..........................................................................................45
Figure 39 shows an error.......................................................................................................................46
Figure 40 rectify the errors....................................................................................................................47
Figure 41 interface to input data for room 2..........................................................................................48
Figure 42 show errors for invalid input.................................................................................................49
Figure 43 rectify errors..........................................................................................................................50
Figure 44 open file of the project...........................................................................................................51
Figure 45 expand the file.......................................................................................................................52
Figure 46 select file................................................................................................................................52
Figure 47 right-click to run the file........................................................................................................52
Figure 48 search NetBeans....................................................................................................................53
Figure 49 download NetBeans...............................................................................................................54
Figure 50 downloading started..............................................................................................................54
3
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_4

Figure 51in process................................................................................................................................55
Figure 52 welcome installer...................................................................................................................57
Figure 53 license....................................................................................................................................58
List of tables
Table 1 feedback table...........................................................................................................................51
4
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_5

Introduction
This report is composed of Wooden Flooring service in which they want to calculate the area, cost
and time for particular rooms. This project is developed and designed by utilizing Java programming
in Netbeans which is as an IDE (Integrated Development Environment). The java provides various
methods, libraries to execute the functionalities for calculating wooden flooring. The NetBeans
provide a platform for performing the calculation and give an estimation of costly and also provide a
gateway to make payment through various modes such as by cash, debit card and credit card with the
calculating amount to pay for each mode. This report also provides testing of this system and various
users reviews to enhance the performance of the system and this report also provides a demonstration
for executing the source file and how to use NetBeans for developing the system.
5
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_6

LO1
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 was given by Sun Microsystems in 1991 which is a very easy programming language. Later on,
it was taken by Oracle Corp., Java provides various features as its compilation debugging and
programming is much easier as its code can be reused and run on any platform without hassle. The
Java programming widely used and it utilizes the concepts of OOPs programming which is very
known. Initialization of Java programming by importing packages or modules which make code
executable by finding libraries method.
It has 4 most common elements which are used in programming to provide functionalities as:
1. Inheritance:
Inheritance is a feature of OOPs which provides accessibility for a child class to base class
methods using access modifiers which help in saving time and not to define again and again
same methods. Basically used for deriving the functions of a base class in derived class as a
hierarchy.
2. Polymorphism:
It is also a part of OOPs and it means many forms as name resembles poly means ”many” and
morphs is for “forms”. Basically, it means that not define the same method again and again,
just override that method which is already defined in some class and utilize in many ways.
3. Data Abstraction:
Data abstraction is used in any programming as it hides unnecessary details of data
information. For example, take a login page in which by entering credentials, it’ll login in that
system but never shows how logged in or their process. So data abstraction basically hides the
unwanted details and shows the required part.
4. Encapsulation:
It is used for hiding the data part which must not be shared with anyone, so it encapsulates the
data and compiles it without showing its working. It can be possible only by using access
identifiers which protect the code from used by externals by keeping safe and send for
manipulation.
There are some characteristics of java as:
6
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_7

Object-oriented:
Java utilizes most of the features of OOPs programming which provides classes and objects
methodologies to make a program and provide security functionalities by using access modifiers.
Security:
Java is much secure as it doesn’t have a pointer which exploits the overflow conditions of buffer or
stacks which mean that data can be accessed by out of boundaries and it makes java secure.
Robust:
Java is more reliable language as it has compiler itself which find the bugs or errors if present in
programming before completion and it helps in to develop functional code error free.
Distributed:
Java has distributed language as it can create a various application which is distributed, for example,
enterprise java beans (EJB) and remote method invocation (RMI) which are utilized for developing
distributed applications which help to connect through the internet, see many times in applets.
Portable:
Java is portable language as it can be compiled on different platforms. Basically, it generates byte
code which can be executed on various platforms.
Multithreading:
It is most used components which provide execution 2 or more programs simultaneously by using
packages which binds different programs in a single code.
Simple:
Java is very simple language as it doesn’t support various features of another language such as
multiple inheritances, overloading of operators, pointers or many more (Corsaro & Schmidt, 2002).
Platform independent:
Java is a platform independent language as it compiler which is javac converts the source code save
with .java extension into byte code saved by .class extension and this byte code can run on any
platform which makes java platform independent.
7
Wooden Flooring Calculator: Estimate Your Flooring Costs and Time_8

End of preview

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

Related Documents