The following code prints the first print statement __________ times, the second print statement __________ times, for a total of ____________ total printed lines of text. /**      * Main method.      *      * @param args command-line arguments (not used)      */     public static void main(String[] args)     {         final int DAYS_IN_A_YEAR = 365;         final int HOURS_IN_A_DAY = 24;                  for (int i = 0; i < DAYS_IN_A_YEAR;  i++)         {             System.out.println("Today is day " + (i + 1) + " of " + DAYS_IN_A_YEAR);             for (int j = 0; j < HOURS_IN_A_DAY; j++)             {                 System.out.println("This is hour " + (j + 1) + " of " + HOURS_IN_A_DAY);             }         }     } Select one: 365, 8760, 9125 364, 8736, 9100 366, 8784, 9150 none

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

The following code prints the first print statement __________ times, the second print statement __________ times, for a total of ____________ total printed lines of text.

/**
     * Main method.
     *
     * @param args command-line arguments (not used)
     */
    public static void main(String[] args)
    {
        final int DAYS_IN_A_YEAR = 365;
        final int HOURS_IN_A_DAY = 24;
        
        for (int i = 0; i < DAYS_IN_A_YEAR;  i++)
        {
            System.out.println("Today is day " + (i + 1) + " of " + DAYS_IN_A_YEAR);
            for (int j = 0; j < HOURS_IN_A_DAY; j++)
            {
                System.out.println("This is hour " + (j + 1) + " of " + HOURS_IN_A_DAY);
            }
        }
    }

Select one:

365, 8760, 9125

364, 8736, 9100

366, 8784, 9150

none

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,