# Declare an integer constant, months_in_year, whose value is 12?

87 views

## Problem:

I am new in programming, I need help, can anyone help me?
Declare an integer constant, MONTHS_IN_YEAR, whose value is 12?

## Solution:

``final int MONTHS_IN_YEAR = 12;``

## Solution:

The Solution of this query is
``final int MONTHS_IN_YEAR = 12;``

## Related questions

106 views
Problem: Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not? Write an expression that whose value is the fifth character of the String name?
179 views
Problem: Write an expression whose value is the str that consists of the third to last character of the str associated with s I tried s[2:] didn't work. Can you please guide me with right solution?
89 views
Problems: I am new to programming, I need help, can anyone help me? Declare a variable isACustomer suitable for representing a true or false value?
14 views
Problem: Would the following code be correct? class Person { private: string name; bool sex; int age; public: Person (); bool getSexo (); int getAge (); Person play (string s); }Hope someone could help me out?
87 views
Problems: Can anyone give the right solution? Write a literal representing the false value?
211 views
Problem: I am new in programming and stuck in a query, can anyone guide me? Write an expression that evaluates to True if the str associated with s starts with "p"?
170 views
Solutions: I am new in programming and my logic is not good, can anyone give the right solution? Write an expression that evaluates to true if and only if the C-string s equals the C-string "end"?