QGroup A: (C++) Q1. Write a menu driven program for following:
- a)) display a Fibonacci series (75 words)
- b)) compute Factorial of a number (75 words)
- c)) to check whether a given number is odd or even. (75 words)
- d)) To check whether a given string is palindrome or not. (75 words)
- Menu-driven programs use a loop and conditional statements for user choice.
- Fibonacci series: each term is the sum of the two preceding ones (e.g., 0, 1, 1, 2...).
- Factorial (`n!`) is the product of all positive integers up to `n` (e.g., `5! = 120`).
- Odd/Even check: `num % 2 == 0` for even, otherwise odd.
Answer: A menu-driven program simplifies user interaction by presenting a list of options, allowing the user to select desired operations. This approach, fundamental in introductory programming, typically involves a main loop that repeatedly displays the menu and waits for user input. Upon selection, conditional statements (`if-elif-else`) direct the program flow to execute the corresponding function or module. An exit option is always provided to terminate the program gracefully. This modular design e...