Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ program ....Please don't use Cmath you most use a loops of your choice , implement an exponent function that will ask for a base
c++ program ....Please don't use Cmath you most use a loops of your choice , implement an exponent function that will ask for a base and an exponent and will display the solution. In the case you get a negative exponent you have to output your answer as 1/n or -1/n in the case of a negative number with an odd exponent. So for example, 2^3 should return 1/8. Whereas -2^3 should return -8 and -2^-3 should return -1/8 and 2^3 should return 8.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started