Question 1 Apply the while and switch flow control structures to write a program that produces the outputs corresponding
Posted: Sun May 15, 2022 1:51 pm
Question 1 Apply the while and switch flow control structures to write a program that produces the outputs corresponding to the relevant inputs as shown in the table below. Your program should continue to prompt user for input and output the Season Name until the number -1 is entered to terminate the program. If invalid Month Number (0, or > 12) is entered, the program should generate an error message. Output: Season Name Input: Month Number 1 2 3 4. 5 Spring Summer 6 7 8 Autumn 9 10 11 12 Winter (10 marks)