Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

MITS4002

OBJECT-ORIENTED SOFTWARE
DEVELOPMENT
Activity 09
Weightage: 15%
Due date: Sunday Lesson 10 11:59 PM

Late penalty applies on late submission, 10% per day would be deducted
0 mark for LATE Submission more than one week
0 mark for DUPLICATED Submission or Shared Work

You will be marked based on your submitted zipped file on Moodle. You are
most welcome to check your file with your lab tutor before your submission.
No excuse will be accepted due to file corruption, absence from lecture or lab
classes where details of lab requirements may be given.
Please make sure that you attend Lecture EVERY WEEK as low
attendance may result in academic penalty or failure of this unit.

Student ID:

Student full name:


MITS4002 Actvity 09

This assessment item relates to the unit learning outcomes as in the unit descriptors.

This checks your understanding about object-oriented software development.

This assessment covers the following LOs.

LO1 Demonstrate understanding of classes, constructors, objects, data types and


instantiation; Convert data types using wrapper methods and objects.

LO2 Independently analyse customer requirements and design object-oriented programs


using scope, inheritance, and other design techniques; Create classes and objects that
access variables and modifier keywords. Develop methods using parameters and return
values.

LO3 Demonstrate adaptability in building control and loop structures in an object-


oriented environment; Demonstrate use of user defined data structures and array
manipulation.

1
MITS4002 Actvity 09

Project: Converting pounds to kilograms calculator


Problem Description:

Write a JPanel (Conversion.java) and its testing class (testConversion.java) with


appropriate layout to create a user interface as shown in the figure below. Your program
should let the user enter a value in pound and should display the answer in kilograms in a
text area when the “Convert!” button is clicked. Note, your answers should be expressed
in three decimal places, and use append() method to append the answers to the text area
so that any previous answers won’t go away.

Useful formula: 1 𝑝𝑜𝑢𝑛𝑑 = 0.453592 𝑘𝑖𝑙𝑜𝑔𝑟𝑎𝑚𝑠

Analysis/Design: State what you need to implement, border layout type and other
components required … etc.

Coding: (Paste your code here, including the implementation of the button
ActionListener)

Screenshots of your output and testing:

2
MITS4002 Actvity 09

Submit the following items:

1. Submit this Word document to Moodle (you must submit the program regardless
whether it complete or incomplete, correct or incorrect)

2. Fill in self-evaluation:

1. Is the UI created correctly?

2. Are the values computed correctly?

3. Is the text area displayed correctly?

3
MITS4002 Actvity 09

Rubrics for MITS4002 Activity 09

Design/Analysis
Irrelevant
Approaches Partially
Meets the submission/
the meets the
expectation no
expectation expectation
submission

3points 2points 1points 0points


Coding;
Indentation; Irrelevant
Comments Approaches Partially
Meets the submission/
the meets the
expectation no
expectation expectation
submission

3points 2points 1points 0points


Output
screenshots;
Correct answer; Irrelevant
Approaches Partially
Output Meets the submission/
the meets the
formatting expectation no
expectation expectation
submission

3points 2points 1points 0points


single WORD
document as Irrelevant
requested Approaches Partially
Meets the submission/
the meets the
expectation no
expectation expectation
submission

3points 2points 1points 0points


Evidence of
testing and Irrelevant
debugging Approaches Partially
Meets the submission/
the meets the
expectation no
expectation expectation
submission

3points 2points 1points 0points

You might also like