dmargolis1587 dmargolis1587
  • 20-01-2020
  • Computers and Technology
contestada

Using two statements on separate lines, declare integer variables named newSales and totalSales. (Do not initialize the variables.)

Respuesta :

stigawithfun
stigawithfun stigawithfun
  • 21-01-2020

Answer:

int newSales;

int totalSales;

Explanation:

The code has been written in Java.

To declare a variable in Java, all you need is to give its type followed by the name of the variable and then a semicolon. i.e

[ datatype ] [ variablename ] [ ; ]

In this case the variables are of type integer (int) and there names are newSales and totalSales.

Therefore declaring the variables can be written as follows:

int newSales;

int totalSales;

Hope this helps!

Answer Link

Otras preguntas

how do we learn about a culture by studying its currency??
Add and simplify (3x³-2x²-x+2)+(4x²+3x-6)1) 3x³-2x²+4x-82) x³-2x²+4x-83) 3x³+2x²+2x-44) x³+2x²+4x-4
Can someone read my essay and say what I have to improve also tell me what I should put for my conclusion. Thank you! “Love Exists” True
what is 5 square root of 54
the pressure of the earth's atmosphere becomes what as you move away from earth's surface?
why do humans need nitrogen to survive?
The nervous system of a clam is very simple. How can a clam function with such a simple nervous system?
Add and simplify (3x³-2x²-x+2)+(4x²+3x-6)1) 3x³-2x²+4x-82) x³-2x²+4x-83) 3x³+2x²+2x-44) x³+2x²+4x-4
Add and simplify (3x³-2x²-x+2)+(4x²+3x-6)1) 3x³-2x²+4x-82) x³-2x²+4x-83) 3x³+2x²+2x-44) x³+2x²+4x-4
Describe and explain the main causes of the Cold War :)