InJava, write a program that asks a user for the total cost of apurchase and calculates the tax and the total purchase price. Makesure to write out the cost of the purchase, the tax, and the totalpurchase price formatted to two decimal places using theNumberFormat class.
Expert Answer
An answer will be send to you shortly. . . . .