Question: JAVA Upvote for quick working code. Finish the code below so that it presents a dialog box that asks the user to enter the amount

JAVA

JAVA Upvote for quick working code. Finish the code below so that

Upvote for quick working code.

Finish the code below so that it presents a dialog box that asks the user to enter the amount of a purchase, with a message of the form "How much was your purchase?" You will need to covert the amount entered with the Double.parseDouble method., then calculate the amount of tax owed (multiply the user's amount by 0.06 to determine our six percent tax rate). Your program will then present a second dialog box that reports the amount of Michigan sales tax that is owed. The second dialog box will have a message of the form "The tax on that $10.00 purchase is $0.60" (your message should report the values accurately for any amount entered by the user -- it should not always report the tax for $10.00). import javax.swing.JOption Pane; public class SalesTax { public static void main(String [] args) { 77 WRITE THE CODE THAT SHOULD GO HERE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!