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
Fill in the blanks.
skelet666 [1.2K]
Blank 1= key 
blank 2= 8
blank 3= applications
blank 4= password
6 0
3 years ago
Read 2 more answers
Which option allows users to access the handout master to modify it?
Colt1911 [192]

Answer:

in the school store

Explanation:

4 0
3 years ago
Write in general about ergonomic injuries and also mention the symptoms that computer users exhibit when they experience these s
Tema [17]

Ergonomic injuries are caused by ergonomic risk factors like awkward or sustained postures, strain, contact pressure, exposure to vibration and exposure to heat or cold. Over time, a combination of these factors may lead to injury, pain, and disability. Ergonomic injuries which can directly or indirectly be related to work environment can affect the nerves, tissues, muscles, tendons, and joints. For instance, on average, an employee may spend about 6-8 hours on the computer.

<span>The symptoms that computer users may exhibit when they experience these musculoskeletal disorders include pain in the shoulders, upper or lower back and the neck. Others include discomfort when making certain movements, loss of coordination, general feeling of cramping, weakness of muscle function, and a sharp burning stabbing  pain in the wrists.</span>
3 0
3 years ago
Read 2 more answers
Explain two ways that you can create a header.
sveticcg [70]

Answer:

   

Explanation:

7 0
3 years ago
Difference between Hard copy and Soft copy?​
otez555 [7]

Answer: a hard copy is a printed or physical copy of a document, while a soft copy is a virtual or online copy of the document that is stored on your hard drive or computer.

Explanation:

8 0
3 years ago
Other questions:
  • What is the maximum number of communication paths for a team of twenty people?
    5·1 answer
  • P**nhub or x-videos or other
    9·1 answer
  • Modify your solution to Problem 8.24 so that one (and only one) child installs a Segmentation-fault handler which prints an erro
    10·1 answer
  • What is the different between a computer and a phone?​
    15·1 answer
  • Why you think Operating System is pivotal in teaching and learning.
    13·1 answer
  • &gt;&gt;&gt; from hog import *
    15·1 answer
  • Which of the following are common data types? Check all that apply.
    6·1 answer
  • 6 → What is the difference between SHA-256 and SHA-512?
    12·1 answer
  • Data source contains addresses of the merge fields. true or false​
    8·1 answer
  • ____ is a technology that exists inside another device
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!