Question: Write a C + + program that performs the following: Prints on screen a selection menu as follow: 1 - Sin ( x ) ,
Write a C program that performs the following: Prints on screen a selection menu as follow:
Sin x Cosx and ex
Binary and Decimal.
Factorial, power and Palindrome
Count characters and print digits
Exit
If user presses the following sub menu should be displayed:call functions power and factorial to solve the following series.
Sin x
Sin xxx xn
Cos x
Cosxx xxxnex x xn
Return to the main menu.
If user presses program should call a function that displays the following submenu:
Binary to Decimal: call a function that takes a binary number and convert it to decimal Decimal to Binary: call a function that takes a decimal number and convert it to binary.
Return to the main menu
If user presses program should call a function that displays the following submenu.
Find factorial of n call a function that finds the factorial of any number
Find the power. x to the power n call a function that finds the power of x and n
Check if y is Palindrome number. call a function that takes integer x and checks if x is palindrome number or not.
Return to the main menu
If user presses program should call a function that displays the following submenu:
Count characters.
Program should call a function that read a set of characters from the keyboard until q is pressed. The program should count the occurrence of each of these characters a e and r
Print digits: call a function that takes integer x and print its digits with separate spaces as and print it as
Return to the main menu.
To Exit press
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
