Comments (2)
TO-DO LIST
- Declare and define a function which takes a double (for m) and an integer (for n) as parameters and calculate the power of m when raised to n... Since, this function is same as the one done in question 4.7, we can safely reuse it (as mentioned in the problem statement). (Completed in Update 1)
- Define and declare another function which performs the same functionality except takes an integer value for m. (Completed in Update 1)
- Write a main() that calls both the functions to show the concept of function overloading. (Completed in Update 1)
NOTE: It is highly recommended to all the people who are attempting this question to first solve and understand the question 4.7, since this question is a follow-up to the aforementioned question.. And, there might be slight possibility that you might find this problem especially, the code of the power() function...
If you find yourself struggling, please check out answer of Question 7 of Chapter 4 (or even issue #31).
from cplusplus-prog-exercises.
Update 1: Due to the simplicity of the answer, I have directly committed the complete solution to branch 'prog-ex-4'.
Task(s) Completed:
- Declare and define a function which takes a double (for m) and an integer (for n) as parameters and
calculate the power of m when raised to n... Since, this function is same as the one done in question
4.7, we can safely reuse it (as mentioned in the problem statement). - Define and declare another function which performs the same functionality except takes an integer
value for m. - Write a main() that calls both the functions to show the concept of function overloading.
And, thus, this issue is now 'closed'.
from cplusplus-prog-exercises.
Related Issues (20)
- Question 6.2 still remains unanswered HOT 1
- Question 6.3 still remains unanswered HOT 2
- Question 6.4 still remains unanswered HOT 3
- Question 6.5 still remains unanswered HOT 2
- Question 7.1 still remains unanswered
- Question 7.2 still remains unanswered
- Question 7.3 still remains unanswered HOT 14
- Question 7.4 still remains answered HOT 4
- Question 7.5 still remains unanswered HOT 2
- Question 8.1 still remains unanswered HOT 4
- Question 8.2 still remains unanswered HOT 4
- Question 8.3 still remains unanswered HOT 12
- Question 8.4 still remains unanswered HOT 3
- Question 8.5 still remains unanswered HOT 3
- Question 8.6 still remains unanswered HOT 1
- Question 8.7 still remains unanswered HOT 1
- Question 9.1 still remains unanswered. HOT 3
- Question 9.2 still remains unanswered. HOT 3
- Question 9.3 still remains unanswered. HOT 5
- Question 9.4 still remains unanswered. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cplusplus-prog-exercises.