Guest User

Untitled

a guest
Apr 22nd, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /*Richard-David Simmons
  2. Create a bank account*/
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. int main() {
  8. const double INTEREST = 10.0;
  9. double account;
  10. cout << "Enter the amount of your account $";
  11. cin >> account;
  12. double newBalance;
  13. newBalance = account + account * (INTEREST / 100);
  14. cout << "In about six months your account can grow to\n"
  15. << "$" << newBalance << ", isn't this worth your money?";
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment