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

Which structure allows photosynthesis to begin in a germinating dicot plant? A. Cotyledon B. Endosperm C. Embryonic root D. Apical meristem E. Lateral meristem
Explain why diesel engines don't use spark plugs.
what is the life cycle of the blue shark
Please help me When buying a new car, you have a choice of 4 different models, 3 different colors, and either compact or family size. How many choices are ther
The diagram to the right is composed of carbon hydrogen and oxygen so is an example of a
Six diminished by twice a number is ten
Six diminished by twice a number is ten
Genetic transfer refers to a. how Archaea dissolve in extreme environments and transfer their DNA to other prokaryotes. b. how Bacteria evolve new genes through
How many grams of NH3 can be produced from the reaction of 28g of N2 and 25g of H2?
How do you respond to sabes jugar un deporte cual?