The method you use to accomplish the deletion of the unwanted characters is up to you, but give it some thought. Create a new component derived from Panel. It should use insets to draw shaded bevels in the insets areas, so the new Panel class looks like a large Button, with light gray on its top and left border and dark gray on its bottom and right borders. The constructor to the panel should take two arguments which specify the two colors to use in the shading. It should be neat, attractive, and convenient for the user.
Display results to two decimal places.
This probably will involve converting the result to a String and manipulating the String. You may truncate - you don't have to round.