SlideShare a Scribd company logo
1 of 22
ICT104: Programming Assignment Compiled By: Divya
Leekha T1 2019 Page |
1
T12019: ICT104 Program Design and Development
Programming Assignment
Assessment type: Programming Assignment
Purpose: This assessment will allow students to demonstrate
their
understanding of Java programming and object oriented
concepts, the use
of list classes in collection framework, and the use of graphical
features using
swing and applets. This assessment contributes to Learning
Outcomes c and
d.
Value: 20%
Due Date: Week 10 Sunday 23:55
Task Details:
Topic: Develop Java application based on the given scenario:
individual assignment
Assignment Details:
The context for this assignment (Part 1 and Part 2) is a ‘Milk
Consumption App’ for
calculating and displaying milk consumption of a given
household. This assignment will test
a student’s knowledge of and skills in writing application
software for a particular task,
understanding the business rules of a particular problem, coding
these in a computer
program, developing a graphical user interface.
For this assignment, students will use the Java programming
language and development will
be on the NetBeans IDE platform.
This assignment consists of 2 stages,
• Part 1: A simple console program (no GUI)
• Part 2: The same but wrapped in a GUI
Milk Consumption App
Preamble: A milk provider business owner has approached you
with a request to write a
software application to track the milk usage of their clients.
Following data are gathered for each filling;
a) Amount of milk purchased (x litres) [float]
b) Price of milk (y cents/litre) [integer]
c) Number of days the household could utilize the milk (z days)
[float]
ICT104: Programming Assignment Compiled By: Divya
Leekha T1 2019 Page |
2
The client requires the application to track the last five such
household fillings of milk and
alert if the average cost goes above the threshold as per the
following table. (Important:
The value of threshold is as per the last two digits of student ID
from the following table.)
Threshold above Last 2 Digits of your Student ID
1) 114.05 cents 00 to 09
2) 114.10 cents 10 to 19
3) 114.15 cents 20 to 29
4) 114.20 cents 30 to 39
5) 114.25 cents 40 to 49
6) 114.30 cents 50 to 59
7) 114.35 cents 60 to 69
8) 114.40 cents 70 to 79
9) 114.45 cents 80 to 89
10) 114.50 cents 90 to 99
A Worked example: Let’s calculate the average milk
consumption for a single filling. Using
the notation above;
The average milk consumption (afc1) = x/z (liters per day)
The average cost (ac1) = (x/z)*y (cents per day)
Then for five households;
The overall Average Milk Consumption (afc) = {afc1+ afc2+…+
afc5}/5
The overall Average Cost (ac) = {ac1+ ac2+…+ ac5}/5
ICT104: Programming Assignment Compiled By: Divya
Leekha T1 2019 Page |
3
You’ll also need to check if ac exceeds client set threshold
warning.
Test Cases
When designing and implementing software applications, it is
always important to first work
out how to test the program(s) and what data to use, then to
code. You need to identify at
least 5 test cases. You need to design and systematically test the
two different conditions of
average cost warning.
Submission Instruction
Add all Java files (ending in .java) to a ZIP file. You do not
need to zip the entire project
folder, just the Java source file(s) (the ‘src’ folder).
Part 1:
Write a simple Java program to calculate the average milk
consumption and the average
cost for a single household filling. Then extend this to include
five households and calculate
the overall average milk consumption (afc) and average cost
(ac) for the five households.
You’ll also need to warn the user if the average cost is equal to
higher than the threshold.
In Part 1, you will be developing a Java program without a GUI.
Input and output are via the
console.
When the program is executed, the user will be asked to input
for five consecutive
households:
• Amount of milk purchased (in litres)
• Price of ONE litre of milk (in cents)
• The number of days after the filling (in days)
Then the program should display afc and ac for the data and
indicate if the ac is below the
warning level.
ICT104: Programming Assignment Compiled By: Divya
Leekha T1 2019 Page |
4
Hint/Steps for Part 1:
1. Think about your strategy for how you will calculate the afcn
and ac_n for each
filling. And then how you work out the overall afc and ac using
these calculations.
Think about writing simple functions/methods for the repetitive
calculations.
2. Add a simple Java class named Part1. Do not add a GUI.
3. Declare and instantiate the variables that you will need for
Part 1. You will also need
several ArrayLists to hold the milk amount, price, and number
of days, at the start of
the main method, for example (you’ll need to add additional
ArraysLists as well):
Make use of Generics to define your Collection Framework
classes. i.e. ArrayList
4. Add code to read in the data from the user for the five
households. A recommended
way is to use the Scanner class.
5. Now add the code that implements your strategy of
calculating the afc and ac.
6. Finally, add three System.out.println() statements that state
the overall afc, ac and
the warning message if ac exceeds the threshold.
7. Test your implementation with the test cases mentioned
above (and additionally
your own).
Part 2:
Design and implement a Java Swing GUI application (Java
Swing components) that provides
an easy to use interface.
This GUI application must allow a user to input the various data
elements. To this end, the
user can
• input the data using Java Swing GUI elements, e.g. text fields,
radio buttons, drop
down lists, etc.
• Click on a Calculate button that starts the calculation of the
final results, and
• An Exit or Quit button to properly close the program.
Use the same code for the calculations from Part 1. Reusing
code is an important part of
software development.
You have a great degree of freedom in what GUI elements you
choose and how you would
like to design the layout of your GUI.
ICT104: Programming Assignment Compiled By: Divya
Leekha T1 2019 Page |
5
Notes:
• For this assignment, you do not have to do any checking for
invalid user input (you may
of course, if you want to), for example you do not have to check
whether the user has
typed in a negative number or a zero as discussed earlier.
• Your GUI should update the output labels “Average milk
Consumption “, “Average Cost”
and another label to show a warning if the average cost is
higher when the Calculate
button has been clicked. If “Average Cost” is greater than
threshold then display the
warning message in Red colour.
Hint/Steps for Part 2:
1. Draw a sketch of your graphical user interface on paper.
What Java Swing components
will you use? Where will you place them? The above GUI is just
an example. You are free
to create your own GUI.
2. Add all the components for your GUI. Use Java Swing
components like JFrame, JLabel,
JTextField, JButton.
3. Add event handlers (ActionListeners) for your buttons, radio
buttons, check boxes, etc.
4. Add the code that does the actions, e.g. that does the
calculation for afc and ac. Reuse
your code for the calculation Part 1 by copying and pasting it
from the Part1main
method into the Calculate button’s event handler.
5. Test your application. Run it as a Java Application. Enter the
test cases listed above and
make sure your code adheres to the Java style guide. You need
to manually add more
comments than the automatically generated comments.
Marking Rubrics:
Criteria (Unsatisfact
ory)
Fail
(Satisfactory)
Pass
(Effective)
Credit
(Excellent)
Distinction
(Exceptional)
High Distinction
%
Delivery No task
submitte
d.
Complete
d less
than 50%
of the
requirem
ents. Not
submitte
d in
correct
format
Completed
between
5075% of the
requirements.
Submitted in
correct format
Completed
between
7585% of the
requirements.
Submitted in
correct format
Completed
between
8595% of the
requirements.
Submitted in
correct format
Completed
between 95-100%
of the
requirements.
Submitted in
correct format
3
ICT104: Programming Assignment Compiled By: Divya
Leekha T1 2019 Page |
6
Coding
Standards
No name,
date, or
assignment
title
included.
Poor use of
white
space
(indentatio
n, blank
lines).
Disorganiz
ed and
messy.
Poor use
of
variables
(many
global
variables,
ambiguo
us
naming).
Missing
information on
name, date, or
assignment
title included.
White space
(indentation,
blank lines)
used properly.
Organized
work use of
variables
(many global
variables,
ambiguous
naming).
Includes name,
date, and
assignment title.
White space
makes
program fairly
easy to read.
Organized
work. Good
use of
variables (few
global
variables,
unambiguous
naming).
Includes name,
date, and
assignment title.
Good use of
white space.
Organized
work. Good
use of
variables (no
global
variables,
unambiguous
naming).
Includes name,
date, and
assignment title.
Excellent use of
white space.
Creatively
organized work.
Excellent use of
variables (no
global variables,
unambiguous
naming).
3
Documentation No
documentat
ion
included.
Basic
documentation
has been
completed
Basic
documentation
has been
completed
including
descriptions of
all variables.
Purpose is
noted for each
function.
Clearly
documented
including
descriptions of
all variables.
Specific
purpose is
noted for each
function and
control
structure.
Clearly and
effectively
documented
including
descriptions of all
variables.
Specific purpose
is noted for each
function, control
structure, input
requirements,
and output
results.
3
Runtime Does not
execute
due to
errors.
User
prompts
are
misleading
or non-
existent.
No testing
has been
completed
.
Executes with
some warning
errors.
Executes
without errors.
User prompts
contain little
information,
poor design.
Some testing
has been
completed.
Executes
without errors.
User prompts
are
understandable,
minimum use of
symbols or
spacing in
output.
Thorough testing
has been
completed
Executes without
errors excellent
user prompts,
good use of
symbols, spacing
in output.
Thorough and
organized testing
has been
completed and
output from test
cases is included.
3
Efficiency
A difficult
and
inefficient
solution.
A solution which
provides
some answer
but not
efficient.
A logical
solution that is
easy to follow
but it is not the
most efficient.
Solution
is
efficient and
easy to follow
(i.e. no
confusing tricks).
ICT104 Programming Assignment  Compiled By Divya Lee.docx

More Related Content

Similar to ICT104 Programming Assignment Compiled By Divya Lee.docx

Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Thapar Institute
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CPrabu U
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7comp274
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7solutionjug4
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life CycleFrankie Jones
 
Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7helpido9
 
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docxELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docxjack60216
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxketurahhazelhurst
 
Comp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source codeComp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source codepradesigali1
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comWilliamsTaylorza48
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comStephenson22
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.comHarrisGeorg12
 
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docxCRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docxfaithxdunce63732
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   llflowe
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   bellflower42
 
C programming session 10
C programming session 10C programming session 10
C programming session 10Vivek Singh
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02Vivek chan
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)praveena p
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.combellflower82
 

Similar to ICT104 Programming Assignment Compiled By Divya Lee.docx (20)

Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7
 
2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle2.2 Demonstrate the understanding of Programming Life Cycle
2.2 Demonstrate the understanding of Programming Life Cycle
 
Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7
 
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docxELE2303 Assign 1  Page  1 ELE2303 Embedded Systems Design.docx
ELE2303 Assign 1 Page 1 ELE2303 Embedded Systems Design.docx
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
 
Comp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source codeComp 122 lab 3 lab report and source code
Comp 122 lab 3 lab report and source code
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docxCRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
 
C programming session 10
C programming session 10C programming session 10
C programming session 10
 
Prg 211 prg211
Prg 211 prg211Prg 211 prg211
Prg 211 prg211
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
 

More from tarifarmarie

CASE GS-65 DATE 021309 (REVISED 010311) .docx
CASE  GS-65 DATE  021309 (REVISED 010311) .docxCASE  GS-65 DATE  021309 (REVISED 010311) .docx
CASE GS-65 DATE 021309 (REVISED 010311) .docxtarifarmarie
 
BBA 3551, Information Systems Management 1 Course Lea.docx
BBA 3551, Information Systems Management 1 Course Lea.docxBBA 3551, Information Systems Management 1 Course Lea.docx
BBA 3551, Information Systems Management 1 Course Lea.docxtarifarmarie
 
BUS 599 – Assignments and Rubrics © 2019 Strayer Unive.docx
BUS 599 – Assignments and Rubrics  © 2019 Strayer Unive.docxBUS 599 – Assignments and Rubrics  © 2019 Strayer Unive.docx
BUS 599 – Assignments and Rubrics © 2019 Strayer Unive.docxtarifarmarie
 
BEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docx
BEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docxBEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docx
BEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docxtarifarmarie
 
August 4, 2011 TAX FLIGHT IS A MYTH Higher State .docx
August 4, 2011   TAX FLIGHT IS A MYTH Higher State .docxAugust 4, 2011   TAX FLIGHT IS A MYTH Higher State .docx
August 4, 2011 TAX FLIGHT IS A MYTH Higher State .docxtarifarmarie
 
BHA 3202, Standards for Health Care Staff 1 Course Le.docx
BHA 3202, Standards for Health Care Staff 1 Course Le.docxBHA 3202, Standards for Health Care Staff 1 Course Le.docx
BHA 3202, Standards for Health Care Staff 1 Course Le.docxtarifarmarie
 
Assignment – 8600-341 (Leading and motivating a team effectiv.docx
Assignment – 8600-341 (Leading and motivating a team effectiv.docxAssignment – 8600-341 (Leading and motivating a team effectiv.docx
Assignment – 8600-341 (Leading and motivating a team effectiv.docxtarifarmarie
 
BIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docx
BIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docxBIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docx
BIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docxtarifarmarie
 
BHR 4680, Training and Development 1 Course Learning .docx
BHR 4680, Training and Development 1 Course Learning .docxBHR 4680, Training and Development 1 Course Learning .docx
BHR 4680, Training and Development 1 Course Learning .docxtarifarmarie
 
Business Plan 2016 Owners Mick & Sheryl Dun.docx
Business Plan 2016     Owners Mick & Sheryl Dun.docxBusiness Plan 2016     Owners Mick & Sheryl Dun.docx
Business Plan 2016 Owners Mick & Sheryl Dun.docxtarifarmarie
 
Assignment Guidelines NR224 Fundamentals - Skills NR224 .docx
Assignment Guidelines  NR224 Fundamentals - Skills NR224 .docxAssignment Guidelines  NR224 Fundamentals - Skills NR224 .docx
Assignment Guidelines NR224 Fundamentals - Skills NR224 .docxtarifarmarie
 
Brand Extension Marketing Plan 8GB530 Brand Extension Marketi.docx
Brand Extension Marketing Plan 8GB530 Brand Extension Marketi.docxBrand Extension Marketing Plan 8GB530 Brand Extension Marketi.docx
Brand Extension Marketing Plan 8GB530 Brand Extension Marketi.docxtarifarmarie
 
Building a Dynamic Organization The Stanley Lynch Investme.docx
Building a Dynamic Organization The Stanley Lynch Investme.docxBuilding a Dynamic Organization The Stanley Lynch Investme.docx
Building a Dynamic Organization The Stanley Lynch Investme.docxtarifarmarie
 
BBA 4351, International Economics 1 Course Learning O.docx
BBA 4351, International Economics 1 Course Learning O.docxBBA 4351, International Economics 1 Course Learning O.docx
BBA 4351, International Economics 1 Course Learning O.docxtarifarmarie
 
BSL 4060, Team Building and Leadership 1 Course Learn.docx
BSL 4060, Team Building and Leadership 1 Course Learn.docxBSL 4060, Team Building and Leadership 1 Course Learn.docx
BSL 4060, Team Building and Leadership 1 Course Learn.docxtarifarmarie
 
BHA 3002, Health Care Management 1 Course Learning Ou.docx
BHA 3002, Health Care Management 1 Course Learning Ou.docxBHA 3002, Health Care Management 1 Course Learning Ou.docx
BHA 3002, Health Care Management 1 Course Learning Ou.docxtarifarmarie
 
BBA 3551, Information Systems Management Course Learn.docx
BBA 3551, Information Systems Management Course Learn.docxBBA 3551, Information Systems Management Course Learn.docx
BBA 3551, Information Systems Management Course Learn.docxtarifarmarie
 
Afro-Asian Inquiry and the Problematics of Comparative Cr.docx
Afro-Asian Inquiry and the Problematics of Comparative Cr.docxAfro-Asian Inquiry and the Problematics of Comparative Cr.docx
Afro-Asian Inquiry and the Problematics of Comparative Cr.docxtarifarmarie
 
BBA 2201, Principles of Accounting I 1 Course Learnin.docx
BBA 2201, Principles of Accounting I 1 Course Learnin.docxBBA 2201, Principles of Accounting I 1 Course Learnin.docx
BBA 2201, Principles of Accounting I 1 Course Learnin.docxtarifarmarie
 
ARH2000 Art & Culture USF College of the Arts 1 .docx
ARH2000 Art & Culture  USF College of the Arts 1 .docxARH2000 Art & Culture  USF College of the Arts 1 .docx
ARH2000 Art & Culture USF College of the Arts 1 .docxtarifarmarie
 

More from tarifarmarie (20)

CASE GS-65 DATE 021309 (REVISED 010311) .docx
CASE  GS-65 DATE  021309 (REVISED 010311) .docxCASE  GS-65 DATE  021309 (REVISED 010311) .docx
CASE GS-65 DATE 021309 (REVISED 010311) .docx
 
BBA 3551, Information Systems Management 1 Course Lea.docx
BBA 3551, Information Systems Management 1 Course Lea.docxBBA 3551, Information Systems Management 1 Course Lea.docx
BBA 3551, Information Systems Management 1 Course Lea.docx
 
BUS 599 – Assignments and Rubrics © 2019 Strayer Unive.docx
BUS 599 – Assignments and Rubrics  © 2019 Strayer Unive.docxBUS 599 – Assignments and Rubrics  © 2019 Strayer Unive.docx
BUS 599 – Assignments and Rubrics © 2019 Strayer Unive.docx
 
BEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docx
BEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docxBEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docx
BEAUTY AND UGLINESS IN OLMEC MONUMENTAL SCULPTUREAuthor.docx
 
August 4, 2011 TAX FLIGHT IS A MYTH Higher State .docx
August 4, 2011   TAX FLIGHT IS A MYTH Higher State .docxAugust 4, 2011   TAX FLIGHT IS A MYTH Higher State .docx
August 4, 2011 TAX FLIGHT IS A MYTH Higher State .docx
 
BHA 3202, Standards for Health Care Staff 1 Course Le.docx
BHA 3202, Standards for Health Care Staff 1 Course Le.docxBHA 3202, Standards for Health Care Staff 1 Course Le.docx
BHA 3202, Standards for Health Care Staff 1 Course Le.docx
 
Assignment – 8600-341 (Leading and motivating a team effectiv.docx
Assignment – 8600-341 (Leading and motivating a team effectiv.docxAssignment – 8600-341 (Leading and motivating a team effectiv.docx
Assignment – 8600-341 (Leading and motivating a team effectiv.docx
 
BIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docx
BIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docxBIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docx
BIOEN 4250 BIOMECHANICS I Laboratory 4 – Principle Stres.docx
 
BHR 4680, Training and Development 1 Course Learning .docx
BHR 4680, Training and Development 1 Course Learning .docxBHR 4680, Training and Development 1 Course Learning .docx
BHR 4680, Training and Development 1 Course Learning .docx
 
Business Plan 2016 Owners Mick & Sheryl Dun.docx
Business Plan 2016     Owners Mick & Sheryl Dun.docxBusiness Plan 2016     Owners Mick & Sheryl Dun.docx
Business Plan 2016 Owners Mick & Sheryl Dun.docx
 
Assignment Guidelines NR224 Fundamentals - Skills NR224 .docx
Assignment Guidelines  NR224 Fundamentals - Skills NR224 .docxAssignment Guidelines  NR224 Fundamentals - Skills NR224 .docx
Assignment Guidelines NR224 Fundamentals - Skills NR224 .docx
 
Brand Extension Marketing Plan 8GB530 Brand Extension Marketi.docx
Brand Extension Marketing Plan 8GB530 Brand Extension Marketi.docxBrand Extension Marketing Plan 8GB530 Brand Extension Marketi.docx
Brand Extension Marketing Plan 8GB530 Brand Extension Marketi.docx
 
Building a Dynamic Organization The Stanley Lynch Investme.docx
Building a Dynamic Organization The Stanley Lynch Investme.docxBuilding a Dynamic Organization The Stanley Lynch Investme.docx
Building a Dynamic Organization The Stanley Lynch Investme.docx
 
BBA 4351, International Economics 1 Course Learning O.docx
BBA 4351, International Economics 1 Course Learning O.docxBBA 4351, International Economics 1 Course Learning O.docx
BBA 4351, International Economics 1 Course Learning O.docx
 
BSL 4060, Team Building and Leadership 1 Course Learn.docx
BSL 4060, Team Building and Leadership 1 Course Learn.docxBSL 4060, Team Building and Leadership 1 Course Learn.docx
BSL 4060, Team Building and Leadership 1 Course Learn.docx
 
BHA 3002, Health Care Management 1 Course Learning Ou.docx
BHA 3002, Health Care Management 1 Course Learning Ou.docxBHA 3002, Health Care Management 1 Course Learning Ou.docx
BHA 3002, Health Care Management 1 Course Learning Ou.docx
 
BBA 3551, Information Systems Management Course Learn.docx
BBA 3551, Information Systems Management Course Learn.docxBBA 3551, Information Systems Management Course Learn.docx
BBA 3551, Information Systems Management Course Learn.docx
 
Afro-Asian Inquiry and the Problematics of Comparative Cr.docx
Afro-Asian Inquiry and the Problematics of Comparative Cr.docxAfro-Asian Inquiry and the Problematics of Comparative Cr.docx
Afro-Asian Inquiry and the Problematics of Comparative Cr.docx
 
BBA 2201, Principles of Accounting I 1 Course Learnin.docx
BBA 2201, Principles of Accounting I 1 Course Learnin.docxBBA 2201, Principles of Accounting I 1 Course Learnin.docx
BBA 2201, Principles of Accounting I 1 Course Learnin.docx
 
ARH2000 Art & Culture USF College of the Arts 1 .docx
ARH2000 Art & Culture  USF College of the Arts 1 .docxARH2000 Art & Culture  USF College of the Arts 1 .docx
ARH2000 Art & Culture USF College of the Arts 1 .docx
 

Recently uploaded

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesSHIVANANDaRV
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 

Recently uploaded (20)

Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

ICT104 Programming Assignment Compiled By Divya Lee.docx

  • 1. ICT104: Programming Assignment Compiled By: Divya Leekha T1 2019 Page | 1 T12019: ICT104 Program Design and Development Programming Assignment Assessment type: Programming Assignment Purpose: This assessment will allow students to demonstrate their understanding of Java programming and object oriented concepts, the use of list classes in collection framework, and the use of graphical features using swing and applets. This assessment contributes to Learning Outcomes c and d. Value: 20% Due Date: Week 10 Sunday 23:55 Task Details:
  • 2. Topic: Develop Java application based on the given scenario: individual assignment Assignment Details: The context for this assignment (Part 1 and Part 2) is a ‘Milk Consumption App’ for calculating and displaying milk consumption of a given household. This assignment will test a student’s knowledge of and skills in writing application software for a particular task, understanding the business rules of a particular problem, coding these in a computer program, developing a graphical user interface. For this assignment, students will use the Java programming language and development will be on the NetBeans IDE platform. This assignment consists of 2 stages, • Part 1: A simple console program (no GUI) • Part 2: The same but wrapped in a GUI Milk Consumption App Preamble: A milk provider business owner has approached you with a request to write a software application to track the milk usage of their clients. Following data are gathered for each filling; a) Amount of milk purchased (x litres) [float] b) Price of milk (y cents/litre) [integer]
  • 3. c) Number of days the household could utilize the milk (z days) [float] ICT104: Programming Assignment Compiled By: Divya Leekha T1 2019 Page | 2 The client requires the application to track the last five such household fillings of milk and alert if the average cost goes above the threshold as per the following table. (Important: The value of threshold is as per the last two digits of student ID from the following table.) Threshold above Last 2 Digits of your Student ID 1) 114.05 cents 00 to 09 2) 114.10 cents 10 to 19 3) 114.15 cents 20 to 29 4) 114.20 cents 30 to 39 5) 114.25 cents 40 to 49 6) 114.30 cents 50 to 59 7) 114.35 cents 60 to 69
  • 4. 8) 114.40 cents 70 to 79 9) 114.45 cents 80 to 89 10) 114.50 cents 90 to 99 A Worked example: Let’s calculate the average milk consumption for a single filling. Using the notation above; The average milk consumption (afc1) = x/z (liters per day) The average cost (ac1) = (x/z)*y (cents per day) Then for five households; The overall Average Milk Consumption (afc) = {afc1+ afc2+…+ afc5}/5 The overall Average Cost (ac) = {ac1+ ac2+…+ ac5}/5 ICT104: Programming Assignment Compiled By: Divya Leekha T1 2019 Page | 3 You’ll also need to check if ac exceeds client set threshold warning. Test Cases When designing and implementing software applications, it is
  • 5. always important to first work out how to test the program(s) and what data to use, then to code. You need to identify at least 5 test cases. You need to design and systematically test the two different conditions of average cost warning. Submission Instruction Add all Java files (ending in .java) to a ZIP file. You do not need to zip the entire project folder, just the Java source file(s) (the ‘src’ folder). Part 1: Write a simple Java program to calculate the average milk consumption and the average cost for a single household filling. Then extend this to include five households and calculate the overall average milk consumption (afc) and average cost (ac) for the five households. You’ll also need to warn the user if the average cost is equal to higher than the threshold. In Part 1, you will be developing a Java program without a GUI. Input and output are via the console. When the program is executed, the user will be asked to input for five consecutive
  • 6. households: • Amount of milk purchased (in litres) • Price of ONE litre of milk (in cents) • The number of days after the filling (in days) Then the program should display afc and ac for the data and indicate if the ac is below the warning level. ICT104: Programming Assignment Compiled By: Divya Leekha T1 2019 Page | 4 Hint/Steps for Part 1: 1. Think about your strategy for how you will calculate the afcn and ac_n for each filling. And then how you work out the overall afc and ac using these calculations. Think about writing simple functions/methods for the repetitive calculations. 2. Add a simple Java class named Part1. Do not add a GUI.
  • 7. 3. Declare and instantiate the variables that you will need for Part 1. You will also need several ArrayLists to hold the milk amount, price, and number of days, at the start of the main method, for example (you’ll need to add additional ArraysLists as well): Make use of Generics to define your Collection Framework classes. i.e. ArrayList 4. Add code to read in the data from the user for the five households. A recommended way is to use the Scanner class. 5. Now add the code that implements your strategy of calculating the afc and ac. 6. Finally, add three System.out.println() statements that state the overall afc, ac and the warning message if ac exceeds the threshold. 7. Test your implementation with the test cases mentioned above (and additionally your own). Part 2: Design and implement a Java Swing GUI application (Java Swing components) that provides
  • 8. an easy to use interface. This GUI application must allow a user to input the various data elements. To this end, the user can • input the data using Java Swing GUI elements, e.g. text fields, radio buttons, drop down lists, etc. • Click on a Calculate button that starts the calculation of the final results, and • An Exit or Quit button to properly close the program. Use the same code for the calculations from Part 1. Reusing code is an important part of software development. You have a great degree of freedom in what GUI elements you choose and how you would like to design the layout of your GUI. ICT104: Programming Assignment Compiled By: Divya Leekha T1 2019 Page | 5
  • 9. Notes: • For this assignment, you do not have to do any checking for invalid user input (you may of course, if you want to), for example you do not have to check whether the user has typed in a negative number or a zero as discussed earlier. • Your GUI should update the output labels “Average milk Consumption “, “Average Cost” and another label to show a warning if the average cost is higher when the Calculate button has been clicked. If “Average Cost” is greater than threshold then display the warning message in Red colour. Hint/Steps for Part 2: 1. Draw a sketch of your graphical user interface on paper. What Java Swing components will you use? Where will you place them? The above GUI is just an example. You are free to create your own GUI. 2. Add all the components for your GUI. Use Java Swing components like JFrame, JLabel, JTextField, JButton. 3. Add event handlers (ActionListeners) for your buttons, radio buttons, check boxes, etc.
  • 10. 4. Add the code that does the actions, e.g. that does the calculation for afc and ac. Reuse your code for the calculation Part 1 by copying and pasting it from the Part1main method into the Calculate button’s event handler. 5. Test your application. Run it as a Java Application. Enter the test cases listed above and make sure your code adheres to the Java style guide. You need to manually add more comments than the automatically generated comments. Marking Rubrics: Criteria (Unsatisfact ory) Fail (Satisfactory) Pass (Effective) Credit (Excellent) Distinction (Exceptional) High Distinction %
  • 11. Delivery No task submitte d. Complete d less than 50% of the requirem ents. Not submitte d in correct format Completed between 5075% of the requirements. Submitted in correct format Completed between
  • 12. 7585% of the requirements. Submitted in correct format Completed between 8595% of the requirements. Submitted in correct format Completed between 95-100% of the requirements. Submitted in correct format 3
  • 13. ICT104: Programming Assignment Compiled By: Divya Leekha T1 2019 Page | 6 Coding Standards No name, date, or assignment title included. Poor use of white space (indentatio n, blank lines). Disorganiz ed and messy. Poor use of variables (many global
  • 14. variables, ambiguo us naming). Missing information on name, date, or assignment title included. White space (indentation, blank lines) used properly. Organized work use of variables (many global variables, ambiguous naming). Includes name, date, and assignment title. White space makes program fairly easy to read. Organized work. Good use of
  • 15. variables (few global variables, unambiguous naming). Includes name, date, and assignment title. Good use of white space. Organized work. Good use of variables (no global variables, unambiguous naming). Includes name, date, and assignment title. Excellent use of white space. Creatively organized work. Excellent use of variables (no global variables, unambiguous naming).
  • 16. 3 Documentation No documentat ion included. Basic documentation has been completed Basic documentation has been completed including descriptions of all variables. Purpose is noted for each function.
  • 17. Clearly documented including descriptions of all variables. Specific purpose is noted for each function and control structure. Clearly and effectively documented including descriptions of all variables. Specific purpose is noted for each function, control structure, input
  • 18. requirements, and output results. 3 Runtime Does not execute due to errors. User prompts are misleading or non- existent. No testing has been completed . Executes with
  • 19. some warning errors. Executes without errors. User prompts contain little information, poor design. Some testing has been completed. Executes without errors. User prompts are understandable, minimum use of symbols or spacing in output. Thorough testing has been completed Executes without
  • 20. errors excellent user prompts, good use of symbols, spacing in output. Thorough and organized testing has been completed and output from test cases is included. 3 Efficiency A difficult and inefficient solution. A solution which provides some answer
  • 21. but not efficient. A logical solution that is easy to follow but it is not the most efficient. Solution is efficient and easy to follow (i.e. no confusing tricks).