Question: Please create program prompting user Algorithm 1. Prompt user for amount 1.5 Read input System.out.println(Enteer the amount: $); amount = keyboard. .nextDouble (); 2. Computer

Please create program prompting user Please create program prompting user Algorithm 1. Prompt user for amount 1.5

Algorithm 1. Prompt user for amount 1.5 Read input System.out.println("Enteer the amount: \$"); amount = keyboard. .nextDouble (); 2. Computer state tax 0.04 stateTax = amount 0.04 3. Compute county tax 0.02 countyTax = amount 0.02; 4. Compute total sales tax totalSalesTax = stateTax + countyTax; 5. Compute total sale price totalSalesPrice = amount + totalSalesTax; 6. Display: amount, state tax, county tax, total sales tax, total sales System.out.println("amount: \t\( \backslash t \$ "+ \)quot;+ amount); System.out.println( "State Tax: t\( \mid t \$ " \)quot; " stateTax); System, out. print ln ("county Taxt: t\( \mid t \$ "+ \)quot;+ countyTax); System.out.print ln(" "Total Sales Tax: 1t\( 1 t \$ " \)quot; + TotalSalesTax); System.out.println("Total Sales Tax: \t\( \backslash t \$ " \)quot; + TotalSalesPrice); import java.util.*; public class C2PC7

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!