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
sashaice [31]
3 years ago
15

The exercise instructions here are long -- please read them all carefully. If you see an internal scrollbar to the right of thes

e instructions, be sure to scroll down to read everything. Declare and initialize the following variables:_______.
A) A variable month of Year, initialized to the value 11.
B) A variable company Revenue, initialized to the value 5666777.
C) A variable first Class Ticket Price, initialized to the value 6000.
D) A variable total Population, initialized to the value 1222333.
Computers and Technology
1 answer:
AnnZ [28]3 years ago
5 0

Answer:

A) int monthofYear = 11;

B) long companyRevenue = 5666777;

C) int ClassTicketPrice = 6000;

D) long totalPopulation = 1222333;

Explanation:

A) The variable <em>monthofYear </em>is initialized with value 11. The data type of the variable is int as 11 is an integer value.

B) The variable <em>companyRevenue </em>is initialized with value 5666777. The data type of the variable is long as 5666777 is a large value and need more bytes to store in the memory.

C) The variable ClassTicketPrice is initialized with value 6000. The data type of the variable is int as 6000 is an integer value.

D) The variable <em>totalPopulation </em>is initialized with value 1222333. The data type of the variable is long.

Note: - The programming language (C, C++, JAVA, etc) in which the variables are declared is a case sensitive language that is no special symbol and white spaces are allowed while declaring the variables.

You might be interested in
What type of network does not have centralized control, such as one in a small office or home office?
ella [17]
The answer is P.2.P

:)
7 0
4 years ago
I need the answers. i don’t get this
bixtya [17]
Run,lazy,turtles,slow,wandering, jump,45,weird,pigs, cows, cousins, pale,rude,candles

There are many answers for this but this is what first came to my mind

Hope this helps
4 0
3 years ago
Short Essay on the history of Computer​
Ann [662]
Go on a essay website the right a essay about a topic !
5 0
3 years ago
Read 2 more answers
Access your Practice Lab titles Access your exercise content Reports and files Access your settings Access help and support Comp
Degger [83]

Answer:

The extension for a shell script in windows ends with a .ps1 and for the extension for linux it is .sh, not quite sure for OSX.

4 0
3 years ago
What is computer science​
adell [148]

Answer:

computer science is the study of computer and computing as well as theoretical and practical applications.

pls give me thanks ☺️☺️

7 0
3 years ago
Other questions:
  • What cell address indicates the intersection of the first row and the first column in a worksheet?
    15·2 answers
  • My 2 in 1 laptop/tablet
    13·1 answer
  • Is a small file that a web server writes to the disk drive of the client computer, containing information about the user?
    8·1 answer
  • In which of the following situations will a macro make your work more efficient?
    7·1 answer
  • Does anyone know the answer to this question
    9·1 answer
  • 12. ______ is considered to be the first video game mascot.
    7·1 answer
  • Answer for 3 and 4 please
    15·2 answers
  • Join the class <br> The class code is hello112
    5·2 answers
  • 1- Identify the face expressions is considered....
    10·1 answer
  • write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of an
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!