Skip to content

Investment Challenge is a terminal-based game that simulates investment growth through compound interest. Players start with a principal amount, set a nominal interest rate, and choose a duration to achieve their financial goals. interactive experience users understand investment strategies. Perfect for learning about finance in a fun way!

Notifications You must be signed in to change notification settings

rkstudio585/investment-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Investment Challenge 🎮💰

Welcome to the Investment Challenge, a terminal-based game that helps you simulate investments and understand the power of compound interest. In this game, you'll be tasked with growing your investment over time and achieving your financial goals.

C Script Programming Computer Matrix Library


Project Info

Table of Contents

  1. Features
  2. How It Works
  3. Math Behind the Game
  4. How to Use
  5. How to Run
  6. How to Download
  7. License
  8. Questions
  9. Acknowledgments

Features

  • 🏦 Simulates investment growth over time.
  • 📈 Calculates future value based on user input.
  • 🎯 Allows users to set investment goals.
  • 💡 Interactive terminal-based gameplay.

How It Works

In this game, players start with an initial investment and specify the nominal interest rate and investment duration. The game calculates how much the investment will grow and whether it meets the player's goals.

Math Behind the Game

The game uses the following financial formulas:

  1. Future Value (FV): [ FV = P \times (1 + r/n)^{nt} ] Where:

    • ( P ) = Principal amount (initial investment)
    • ( r ) = Nominal annual interest rate (as a decimal)
    • ( n ) = Number of compounding periods per year
    • ( t ) = Number of years
  2. Effective Annual Rate (EAR) (if needed for further extensions): [ EAR = (1 + r/n)^{n} - 1 ] This formula helps in understanding the real return on an investment, considering the effect of compounding.

How to Use

  1. Clone this repository:

    git clone https://github.com/rkstudio585/investment-challenge.git
    cd investment-challenge
  2. Compile the program using:

    gcc investment_game.c interest_calculations.c -o investment_game -lm
  3. Run the game:

    ./investment_game

How to Run

  1. Make sure you have GCC installed on your machine. If not, install it using:

    • Ubuntu: sudo apt install build-essential
    • Mac: xcode-select --install
    • Windows: Install MinGW or use WSL.
  2. Follow the steps in the How to Use section to compile and run the game.

How to Download

To download the project from GitHub, you can use the following command in your terminal:

git clone https://github.com/rkstudio585/investment-challenge.git

This command clones the repository to your local machine, allowing you to run and modify the game.

Questions

If you have any questions about the project or need assistance, feel free to reach out:

  • How to work?
  • How I Use?
  • Etc..

Acknowledgments

  • Thanks to the open-source community for their valuable contributions.
  • Special thanks to all who provide feedback to improve this project.

🌈 Colorful Glowing Animation

       .        .    .   .        .      .        .    .     .
 .       .    .    .    .     .   .      .  .      .  .     .    .
        .       .   .    .    .  .  .   .     .  .     .      .  .
 .  .     . .       .   .      .      .  . .       .      .   .  .
        .    .   .    .  .      .  .     .    .   .  .  .    .   .
   .     .       .   .      .      .       .      .  .      . . .

Enjoy the game and happy investing! 🚀💵


About

Investment Challenge is a terminal-based game that simulates investment growth through compound interest. Players start with a principal amount, set a nominal interest rate, and choose a duration to achieve their financial goals. interactive experience users understand investment strategies. Perfect for learning about finance in a fun way!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages