Question: Task #5 Formatting Numbers 1. Add an import statement to use the DecimalFormat class as indicated above the class declaration. 2. Create a DecimalFormat object

Task #5 Formatting Numbers 1. Add an import statement to use the DecimalFormat class as indicated above the class declaration. 2. Create a DecimalFormat object that always shows 2 decimal places. 3. Edit the appropriate lines in the main method so that any monetary output has 2 decimal places. 4. Compile, debug, and run. Your output should be completely correct at this time, and numeric output should look like money
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
