82.0k views
2 votes
The exercise instructions here are LONG -- please read them all carefully. If you see an internal scrollbar to the right of these instructions, be sure to scroll down to read everything. Declare and initialize the following variables: A variable monthOfYear, initialized to the value 11 A variable companyRevenue, initialized to the value 5666777 A variable firstClassTicketPrice, initialized to the value 6000 A variable totalPopulation, initialized to the value 1222333

1 Answer

1 vote

Answer:

The following codes are:

int monthOfYear=11;

// integer type variable is initialized

long companyRevenue=5666777;

// long type variable is initialized

int firstClassTicketPrice=6000;

// integer type variable is initialized

long totalPopulation=1222333; //// long type variable is initialized

Explanation:

Here, we define integer type variable "monthOfYear" to 11.

Then, we define long type variable "companyRevenue" to 5666777.

Then, we define integer type variable "firstClassTicketPrice" to 6000.

Then, we define long type variable "totalPopulation" to 1222333.

User Marouen Mhiri
by
5.0k points