Take Assessment: Exercise 1
Please answer the following question(s).
If the assessment includes multiple-choice questions, click the
"Submit Answers" button when you have completed those questions.
1. Go to bottom of question.
Shopping Cart Application
Prerequisites, Goals, and Outcomes
Prerequisites:
Before you begin this exercise, you need mastery of the
following:
•
Java Language
o Knowledge of Java control structures
•
Java API
o Knowledge of package java.io
How to get input from the keyboard
How to output results, prompts, and errors
o Knowledge of wrapper class Integer: how to read an
integer value as input
o Knowledge of class StringTokenizer: how to parse a
line with multiple values
•
Exception Objects
o Knowledge of exception handling
o Knowledge of NumberFormatException
•
Programming Practice
o How to produce Java applications
o Knowledge of Sun's code conventions
o Knowledge of Javadoc: how to document classes,
methods, and variables
Goals:
Reinforce your ability to use I/O classes, tokenizers, wrapper
classes, and exceptions
Outcomes:
You will demonstrate mastery in the following:
• Produce an application that reads input from the keyboard