When Gregory was asked how many days there were in the month of August he recited the rhythm 30 days half September April, June, and November and quickly arrived at the correct solution Gregory used
Added by Alex B.
Step 1
" This indicates that these months have 30 days. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 78 other Psychology educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Chapter 8 Programming Exercise 6: "Days of Each Month" Design a program that displays the number of days in each month. The program's output should be similar to this: January has 31 days. February has 28 days. March has 31 days. April has 30 days. May has 31 days. June has 30 days. July has 31 days. August has 31 days. September has 30 days. October has 31 days. November has 30 days. December has 31 days. The program should have two parallel arrays: a 12-element String array that is initialized with the names of the months, and a 12-element Integer array that is initialized with the number of days in each month. To produce the specified output, use a loop to step through the arrays, getting the name of a month and the number of days in that month. Modifications: Use a single, two-dimensional array that has strings throughout. Example array: month_array = [["jan", "31"], ["feb", "28"]] Using multiple lines to separate your data will make it easier to write the code without mistakes. Use a while loop to iterate through the array and print the same output as shown above.
Akash M.
Rewrite each set using the listing method. The set of months with exactly 31 days.
The Language of Sets
The Concept of Set
What is the fundamental error with this analysis? A. Because October has 31 days, two of the days of the week occur more often than the other days of the week. B. Because October has 31 days, three of the days of the week occur more often than the other days of the week. C. Because October has 31 days, each day of the week occurs the same number of times as the other days of the week. D. Because October has 31 days, one of the days of the week occur more often than the other days of the week.
Nicole S.
Recommended Textbooks
Psychology Openstax
Myers' Psychology for AP
Psychology
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD