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

Your flight covered about 3610 miles in 33.5 hours. Find the unit rate in miles per hour.
How many electrons are in the outermost energy shell of a calcium atom?
The strength of an electric field depends on the A. amount of charge that produced the field. B. distance from the charge. C. amount of charge on a test charg
If you cut a flatworm in half, both halves can grow into a new individual by _____. budding fission fragmentation
Why is congress barred from including conditions concerning a State's government?
explain limitation of algebra that leads development of calculus and how?
write 1/4 as a decimal
Explain three benefits of obtaining learnership and SETAs
3h-j when h=8 and j =11
slope of -5/3 through (0,-4)