Q7. Write a menu driven program which has following options: 1. Find the pth power of a number n using recursive function 2. Find the binary equivalent of a number n and count all 1's using recursive function. 3. Find the reverse of the number using recursive function. 4. Exit Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the Exit option the program should continue to work.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

C language Q 7

Q7. Write a menu driven program which has following options:
1. Find the pth power of a number n using recursive function
2. Find the binary equivalent of a number n and count all 1's using recursive function.
3. Find the reverse of the number using recursive function.
4. Exit
Once a menu item is selected the appropriate action should be taken and once this action is
finished, the menu should reappear. Unless the user selects the Exit option the program
should continue to work.
Transcribed Image Text:Q7. Write a menu driven program which has following options: 1. Find the pth power of a number n using recursive function 2. Find the binary equivalent of a number n and count all 1's using recursive function. 3. Find the reverse of the number using recursive function. 4. Exit Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the Exit option the program should continue to work.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning