This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* completer - | |
* | |
* the definition of this class mimics the functionality of the completer class that we have defined in the dart | |
* packages that lets you deal with unscoped promises instances that can be rejected and resolved in any part of the | |
* application so long as you are able to pass the reference to the context properly | |
* */ | |
type Resolvable<T> = T | PromiseLike<T>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in this program we are going to be calculating compound interest using a looping | |
// algorithm. | |
// | |
// firstly, we discuss the solution that we have in mind. since we are required to | |
// compute this without a formula but using loops we are going to define a function | |
// that will represent the function call. | |
// | |
// let us start by getting the resources we are going to need | |
#include <iostream> |