Question: Write a menu-driven program with the following options to call a recursive function, which raises a number to the power(whole number) must work for negative

Write a menu-driven program with the following options
to call a recursive function, which raises a number to the power(whole number)
must work for negative as well as positive values.
ask a user for the values of the base and the power
to call a recursive function, that produce the sum of the squares for the first n terms of the series (1*1)+(2*2)+(3*3)+...(n*n)-[staring with 1]
output sample: 1+(2*2)+(3*3)= 13; output to be produced by the recursive function
positive numbers only
ask a user for the number of terms
to call a recursive function to add the first n terms of the series (n*n)+...+(3*3)+(2*2)+(1*1) [ starting with n]
output sample (3*3)+(2*2) +1 =13; output to be produced by the recursive function
positive numbers only
ask a user for the number of terms
to quit
c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!