Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 C2PC7Step 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