Question: 5. Use functional decomposition to write a C++ program that takes a number in the range of 1 to 12 as input, and outputs the
5. Use functional decomposition to write a C++ program that takes a number in the range of 1 to 12 as input, and outputs the corresponding month of the year, where 1 is Janu- ary, and so on. The program should output an error message if the number entered is not in the required range. The prompt and the error message should make it clear to the user how a month number must be entered. Be sure to use proper formatting and appropriate comments in your code. The output should be labeled clearly and formatted neatly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
