Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write it in Java. Thanks. Write a Java program that uses the console to communicate with the user. Your program will print output to

image text in transcribed

Please write it in Java. Thanks.

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

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago