Question: Write a complete, compile ready program, to calculate some parameters of an investment in bitcoin. A welcome message should be displayed, the user prompted for

Write a complete, compile ready program, to calculate some parameters of an investment in bitcoin. A welcome message should be displayed, the user prompted for the principal and a future Value for compound interest, calculations made, and output formatted as shown in the example.

You will need the pow function from the cmath library.

written in c++ is 32=pow(2,5);

Equations for Compound interest

Formula for compound interest

Future Value= principal(1+ (rate/1)2)

Formula for continuous compounding

Future Value=principal*erate*2

Example Output

tim@debian:~$ ./a.out Please enter the principal and future value for compound interest. 30000 45000 Calculations with compound interest Rate: 0.224745 Continuous compounding at that rate gives you 47024.2

Blue - output from program

Red - user input

Orange - calculate values

Additional Instructions

  • Algebra may be required to modify the given formulas to be suitable for you program
  • A defined constant must be used for e
  • Values calculated are: rate and future value with continuous interest
  • Output of the program must match the example as close as possible.
  • Do not include comments.
  • No error testing is required.

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!