Chapter 3: Problem 20
The following algorithm yields the season (Spring, Summer, Fall, or Winter) for a given month and day. If moxth is 1,2, or 3, season \(=\) "Winter" Fle if month is 4,5, or 6 , season \(=\) "Spring" Flse if month is 7, 8 , or 9, season \(=\) "Summer" Flae if month is 10,11 , or 12 seascn - "Fall If wonth is divisale by 3 and day \(=21\) If season is "Winter", season = "Sprimg" floe if stason is "Sprimo", season " "Summer" Else if season is "Summer", stason " "Fall" Flae season - "Winter" Write a program that prompts the user for a month and day and then prints the season, as determined by this algorithm.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.