Design an application in which the number of days for each month in the year is stored in an array. (For example, January has 31 days, February has 28, and so on. Assume that the year is not a leap year.) Display 12 sentences in the same format for each month; for example, the sentence displayed for January is Month 1 has 31 days.

Respuesta :

Answer:

Check the explanation

Explanation:

Pseudocode:

start

  Declarations

      num month

      num SIZE = 12

      num DAYS[SIZE] = 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31

      displayDays()

      finishUp()

  stop

  displayDays()

      month = 0

      while month < SIZE

      output “Month ”, month+1, “ has ”, DAYS[month], “ days”

      month = month + 1

  endwhile

  return

  finishUp()

      output “End of program”

  return

================================================================