Study the program to understand what it does


File Deli.java contains a partial program that computes the cost of buying an item at the deli. Save the program to your directory and do the following:
1. Study the program to understand what it does.
2. Add the import statements to import the DecimalFormat and NumberFormat classes.
3. Add the statement to declare money to be a NumberFormat object as specified in the comment.
4. Add the statement to declare fmt to be a DecimalFormat object as specified in the comment.
5. Add the statements to print a label in the following format (the numbers in the example output are correct for input
of $4.25 per pound and 41 ounces). Use the formatting object money to print the unit price and total price and the formatting object fmt to print the weight to 2 decimal places.
***** CS Deli *****
Unit Price: $4.25 per pound
Weight: 2.56 pounds
TOTAL: $10.89

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Study the program to understand what it does
Reference No:- TGS0117622

Expected delivery within 24 Hours