Days 16 Month Weeks This will be a menu-driven program. The menu should look like this: Homer 4 Marge Bart 20 18 3 Menu Lisa 24 4 Maggie Burns 16 2 1. Enter number of days in month 2. Enter number of...


Please, I need to answer this question using the C++ programming language and Visual Studio. Thank you.


Days<br>16<br>Month<br>Weeks<br>This will be a menu-driven program. The menu should look<br>like this:<br>Homer<br>4<br>Marge<br>Bart<br>20<br>18<br>3<br>Menu<br>Lisa<br>24<br>4<br>Maggie<br>Burns<br>16<br>2<br>1. Enter number of days in month<br>2. Enter number of weeks in month<br>3. Exit<br>18<br>Мое<br>24<br>Smithers<br>20<br>4<br>Enter your choice:<br>On planet Groening, there are 8 months of the year as shown in the table.<br>If the user chooses #1 in the menu, your program should ask the user for the number of days in the<br>month, then print out the names of the months that have that number of days AND how many weeks are<br>in each of those month(s). If the user enters a non-valid number of days (for instance, 17), print an<br>error message that explains (in a complete sentence) what happened; this would be the only output.<br>If the user chooses #2 in the menu, your program should ask the user for the number of weeks in the<br>month, then print out the names of the months that have that number of weeks AND how many days are<br>in each of those month(s). If the user enters a non-valid number of weeks (for instance, 8), print an<br>error message that explains (in a complete sentence) what happened; this would be the only output.<br>Your program should continue to print the menu, get the user's choice, and print the results until the user<br>enters #3 on the menu, at which time your program should print a short message telling the user the<br>program is over, and the program ends.<br>Note: 1. You cannot use if statements of any type in this program.<br>2. Instead, you must use a switch statement for the menu AND switch statements inside<br>choices #1 and #2 in program.<br>3. All input and output (other than the menu), must be contained in the switch statements.<br>4. You must use a loop (I suggest a do-while loop) to keep your program running until the<br>user chooses to exit.<br>5. If the user enters a non-valid menu choice (for example, 0) your program should print an error<br>message that explains (in a complete sentence) what happened. It should keep running,<br>though.<br>

Extracted text: Days 16 Month Weeks This will be a menu-driven program. The menu should look like this: Homer 4 Marge Bart 20 18 3 Menu Lisa 24 4 Maggie Burns 16 2 1. Enter number of days in month 2. Enter number of weeks in month 3. Exit 18 Мое 24 Smithers 20 4 Enter your choice: On planet Groening, there are 8 months of the year as shown in the table. If the user chooses #1 in the menu, your program should ask the user for the number of days in the month, then print out the names of the months that have that number of days AND how many weeks are in each of those month(s). If the user enters a non-valid number of days (for instance, 17), print an error message that explains (in a complete sentence) what happened; this would be the only output. If the user chooses #2 in the menu, your program should ask the user for the number of weeks in the month, then print out the names of the months that have that number of weeks AND how many days are in each of those month(s). If the user enters a non-valid number of weeks (for instance, 8), print an error message that explains (in a complete sentence) what happened; this would be the only output. Your program should continue to print the menu, get the user's choice, and print the results until the user enters #3 on the menu, at which time your program should print a short message telling the user the program is over, and the program ends. Note: 1. You cannot use if statements of any type in this program. 2. Instead, you must use a switch statement for the menu AND switch statements inside choices #1 and #2 in program. 3. All input and output (other than the menu), must be contained in the switch statements. 4. You must use a loop (I suggest a do-while loop) to keep your program running until the user chooses to exit. 5. If the user enters a non-valid menu choice (for example, 0) your program should print an error message that explains (in a complete sentence) what happened. It should keep running, though.
Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here