Write the complete statement needed to declare and initialize a new constant to represent the number of weeks in a year, which is  52. Name it "weeks in year" using correct style for a constant. Note: The Java style guide states that one space is used on either side of binary operators. b. Write a simple expression using a relational operator that returns true if the integer variable count is at least 12. Do not use any parentheses or place it in a complete statement

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

java

a.

Write the complete statement needed to declare and initialize a new constant to represent the number of weeks in a year, which is  52. Name it "weeks in year" using correct style for a constant.

Note: The Java style guide states that one space is used on either side of binary operators.

b.

Write a simple expression using a relational operator that returns true if the integer variable count is at least 12. Do not use any parentheses or place it in a complete statement.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT