Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed

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

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

Sql All In One For Dummies 7 Books In One

Authors: Allen G Taylor ,Richard Blum

4th Edition

1394242298, 978-1394242290

More Books

Students also viewed these Databases questions