Not a very complicated algorithm - all you need to do is to multiply (capital) x (interest rate) x (number of time periods). If the interest rate is expressed in percent, you also need to divide by 100 at some point.
Chat with our AI personalities
Sure, honey. First, let's keep it simple. To calculate the perimeter of a square, you just need to multiply the length of one side by 4. So, if the side length is "s", the formula is 4s. As for the flowchart, draw a square with "s" labeled on one side, then an arrow pointing to a box that says "Perimeter = 4s". Done and done, darling.
You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.
If you are working on simple interest you have to write the equation I=p. r.t
This is a request, not a question.
9.6