Question 1 Apply the while and switch flow control structures to write a program that produces the outputs corresponding
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 1 Apply the while and switch flow control structures to write a program that produces the outputs corresponding
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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!