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
Where could an identity theft access your personal information
Nikolay [14]
Hello!

The identity theif could establish a new identity for ciminal purposes using YOUR identity and personal information, and the theif could aquire money or goods from it.

*PLAGIARISM FREE*
5 0
3 years ago
Read 2 more answers
When was technology created?
ANEK [815]

Answer:

two million years ago

Thomas Edison, American inventor who, singly or jointly, held a world-record 1,093 patents. In addition, he created the world's first industrial research laboratory.

3 0
1 year ago
How will you apply the different wiring devices according to its main purposes and functions?
Gekata [30.6K]

Answer:Wiring devices are current-carrying electrical or electronic products that serve primarily as a connection or control point for electrical circuits within a range of 0–400 amperes, 0–600 volts (AC and DC), and AC/DC (660 watts, 1,000 volts AC fluorescent) as well as certain non-current-carrying wiring devices and supplies.

Wiring devices include:

Convenience plugs and power outlets (plugs and receptacles)

Connector bodies and flanged outlets

Cover plates

General-use switches and dimmers

Lampholders (incandescent, fluorescent, cold cathode, neon, quartz lamps, and others)

Lighting control devices

Motion sensing and timer switches

Receptacles

Switch, outlet, FM/TV, blank, and telephone plates

Undercarpet premise wiring systems

Products include receptacle-type arc-fault circuit interrupters (AFCIs), protection devices that can detect an unintended electrical arc and disconnect the power before the arc starts a fire. AFCI technology in residential and commercial buildings is an important electrical safety device.

8 0
3 years ago
In which of the following scenarios would you choose to embed versus import data?
Mrrafil [7]

Answer:

B.)You want to maintain connections with external files

Explanation:

These are the options for the question

A.)You do not want to save the original data sources.

B.)You want to maintain connections with external files

C.)You want to reduce file size

Embedding data can be regarded as insertion of objects( embedded object) such as spreadsheet into a word-processor so that it can be edditted.

Data Import can be regarded as ways that give room for uploading of data

from external sources , then combine it with data that is been collected via Analytics.

6 0
3 years ago
Determine whether the relation represents a function. If it is a​ function, state the domain and range.
slava [35]

Answer:

Yes, the relation is a function

Domain = {-3,1,3,7}

Range = {7,3,1-1}

Explanation:

Given

{(-3,7),(1,3),(3,1),(7,-1)}

To determine if the relation is a function or not, we check if every output has only one corresponding input.

The output are (7,3,1-1) while the input are (-3,1,3,7)

-3 ----;> 7

1 -------> 3

3 -------> 1

7 -------> -1

It is a function since every output only has one corresponding input

To find the domain, we look at the set of input values

Domain = {-3,1,3,7}

To find the range, we look at the set of output values

Range = {7,3,1-1}

3 0
3 years ago
Other questions:
  • Local television news networks cover only
    8·2 answers
  • Match each vocabulary word to its definition.
    11·2 answers
  • Which design element is used to convey smoothness or roughness in a design
    12·1 answer
  • Data aggregate functions
    6·1 answer
  • Before posting a picture online, make sure to
    7·1 answer
  • 20 POINTS!!!!!!!!!! will give brainliest
    8·1 answer
  • A. Suppose a CPU with a write-through, write-allocate cache achieves a CPI of 2. What are the read and write bandwidths (measure
    13·1 answer
  • Why is it important to identify cables and conductors?​
    9·1 answer
  • What is not recyclable in a<br> hybrid car<br> hydrogen car<br> petrol car
    15·1 answer
  • Why womt this code work????
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!