1. Declare a long integer variable named grossNationalProduct 2. The exercise in
ID: 3750999 • Letter: 1
Question
1. Declare a long integer variable named grossNationalProduct
2. 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
(BOTH QUESTIONS IN C LANGUAGE)
Explanation / Answer
//1. Declare a long integer variable named grossNationalProduct
long grossNationalProduct;
//2. Declare and initialize the following variables:
//A variable monthOfYear, initialized to the value 11
int monthOfYear = 11;
//A variable companyRevenue, initialized to the value 5666777
long companyRevenue = 5666777;
//A variable firstClassTicketPrice, initialized to the value 6000
int firstClassTicketPrice = 6000;
//A variable totalPopulation, initialized to the value 1222333
long totalPopulation = 1222333;
Do ask if any doubt. Please upvote.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.