1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
IceJOKER [234]
3 years ago
14

Task #3 Debugging a Java Program

Computers and Technology
1 answer:
ollegr [7]3 years ago
4 0

Answer:

import java.util.Scanner;

public class SalesTax

{

public static void main(String[] args)

{

// Identifier declarations

final double TAX_RATE = 0.055;

double price;

double tax;

double total;

String item;

// Create a Scanner object to read from the keyboard.

Scanner keyboard = new Scanner(System.in);

// Display prompts and get input.

System.out.print("Item description:");

item= keyboard.nextLine();

System.out.print("Item price: $");

price = keyboard.nextDouble();

// Perform the calculations.

tax = price + TAX_RATE;

total = price + tax;

// Display the results.

System.out.print (item + " $");

System.out.println(price);

System.out.print("Tax $");

System.out.println(tax);

System.out.print("Total $");

System.out.println (total);

}

}

Explanation:

You might be interested in
PLEASE HELP!
Basile [38]

Answer:

declare count as integer

7 0
3 years ago
Choose the word pair that would best complete this analogy <br> annihilation : obliteration
iogann1982 [59]
Annihilation : obliteration

if the choices were:

strategy : tactics
sensation : numbness
deliberation : impulsiveness
endeavor : quit 

Then the word pair that would best complete the analogy is:
STRATEGY : TACTICS

Annihilation and obliteration are synonymous. In fact, annihilation is defined as complete destruction or complete obliteration. Obliteration is defined as total destruction.

Strategy and tactics are also synonymous. They both mean a system or mode of procedure or a plan of action.

The rest of the choices are antonyms.
8 0
3 years ago
The google android mobile operating system is a proprietary system, for use on only approved devices.​
balandron [24]
I would choose b. False
7 0
3 years ago
10 points
denis23 [38]
It is publishing in order to storyboard you have to publish it
6 0
3 years ago
The best how can i get. Ethiopian bank enterance examination for natural science grade 12?
zubka84 [21]

do your own work ************************************************************************************************************************************************************

5 0
4 years ago
Other questions:
  • What change does NOT need to be made to the above cover letter excerpt before sending it to an employer? a. Remove background co
    6·2 answers
  • Select all that apply. Given the following code fragment, which of the things shown below happen when the statement on line 8 ex
    13·1 answer
  • Citing the recent increase in earnings by several computer companies, economists feel that a cycle has begun in which personal c
    13·1 answer
  • Which is a benefit of getting information from a government website?
    15·2 answers
  • Add and multiply
    10·1 answer
  • Write a program that declares an array named myArray with 8 components of the type int. Initialize the array to 8 values that th
    6·1 answer
  • Visual Design includes 4 elements: shapes, texture, lines and form.
    6·1 answer
  • Re:
    15·1 answer
  • Which of the following is an example of effective nonverbal communication?
    8·1 answer
  • The events that happen in a story are called the _________________.
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!