CCS103 Week 2 Laboratory Exercise
CCS103 Week 2 Laboratory Exercise
CCS103 Week 2 Laboratory Exercise
Laboratory Exercise
GRADING SCALE
NEEDS FAIR GOOD EXCELLENT WEIGHT SCORE
TRAITS
IMPROVEMENT
1 2 3 4
FUNCTIONALITY The program The The program The
did not program did not program 4
accomplished did not accomplished accomplishe
more than 2 of accomplis 1 of the d all of the
the hed 2 of requirements. program
requirements. the requirement
requireme s.
nts.
READABILITY The code is The code is The code is The code is
poorly readable fairly easy to exceptionall 2
organized and only by read. y well
very difficult to someone organized
read. who and very
knows easy to
what it is follow.
supposed
to be
doing.
EFFICIENCY The code The code is The code is The code is
appears to be unnecessa fairly efficient extremely 4
patched rily long. without efficient
together. sacrificing without
readability. sacrificing
Readability.
TOTAL
INSTRUCTION:
Design a simple JAVA SWING application that will allow a user to enter 2 number values in two separate
JTextField objects. The user is allowed to select a mathematical operation to be performed in the values
entered by providing separate JButton objects for Addition, Subtraction, Multiplication and Division. The
result of every operation selected will be displayed in a JLabel object. Instead of parsing the input values
into Integer, use Double (Double.parseDouble()) as the data type in order to compute values with decimal
places. Include a JButton object to clear all the contents of the JTextField and JLabel objects so that users
can repeat the program execution. Consider the proper naming for the controls used based on our
discussion. You are free to design your application based on your preference without sacrificing the user
friendliness of the application. Bonus points will be given if the JTextField objects will not allow the user to
enter values aside from numbers (you can research from the internet).
PROGRAM CODE:
PROJECT SAMPLE RUN SCREENSHOT/S WITH DESCRIPTIONS:
Attach your own PDF file (every group member should turn in his/ her own copy) as your submission
in the assigned task upon turning in using your MS Team Account the following the given format above.
(your PDF file should begin with the first page of the given format).
Additionally, every group should make a single conversation (do not reply in any of the conversation) in
the Week 2 Channel of our MS Team which contains the names of the members and the screenshot of the
sample output run using the Eclipse IDE.