Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write in Java please. Thanks. Finish the code below so that it presents a dialog box that asks the user to enter the amount of

image text in transcribed

Write in Java please. Thanks.

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.parse Double 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.JoptionPane; public class Sales Tax { public static void main(String [] args) { WRITE THE CODE THAT SHOULD GO HERE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago