Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an algorithm in pseudocode that repeatedly prompts the userto enter a numb

ID: 3617157 • Letter: W

Question

Write an algorithm in pseudocode that repeatedly prompts the userto enter a number representing a month (1 for January, 2 forFebruary, and so on) or 0 to exit. You may assume that the userwill enter a valid input data (0 – 12). Based on the userinput, your algorithm prints the corresponding month or terminates.The algorithm must not contain any conditional statements(hint: use an array of strings to store the names of themonths).

Example output:
Please enter a number (1 – 12, or 0 to exit): 10
October
Please enter a number (1 – 12, or 0 to exit): 1
January
Please enter a number (1 – 12, or 0 to exit): 9
September
Please enter a number (1 – 12, or 0 to exit): 0
Bye!

Explanation / Answer

please rate - thanks you asked for an algorithm, but the previous post for the algorithmyou then asked for the code, so here is both #include using namespace std; int main() {stringmonth[]={"January","February","March","April","May","June",                 "July","August","September","October","November","December"}; int num; coutnum; while(num!=0)      {cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote