Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Upvote for quick working code. JAVA Write a Java program that uses the console to communicate with the user. Your program will print output to
Upvote for quick working code.
JAVA
Write a Java program that uses the console to communicate with the user. Your program will print output to the console using System.out.println and System.out.print. Read any input from the user via a Scanner object. Finish the code below so that it asks the user to enter the amount of a purchase. Your program will then report the amount of Michigan sales tax that is owed (multiply the user's amount by 0.06 to determine our six percent tax rate). Here is a sample run of the program (it should work for other values other than the $10.00 amount shown below -- it should work for any amount entered by the user: What was the cost of your purchase: 10.00 The tax on that $10.00 purchase is $0.60. Finish the code started below: import java.util.*; public class SalesTax { public static void main(String[] args) 1 11 WRITE THE CODE THAT SHOULD GO HEREStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started