Postingan

Menampilkan postingan dari November, 2024

Informatics - Run the Cash Flow Calculator Program (week 10)

Gambar
Hi all! Here I am again making another post for you. As I promised last week on my previous post, I will show you how to run the Cash Flow Calculator program on windows. Are you excited? Let's run the program together! I will show you how to run it step by step.  First step: The first step is open the folder you made for this program on your file explorer. Here, I put my folder on the documents.  Here, I named my file as Cashflow Calculator.  Second step: Right click then choose the "open in terminal" option.  After you click the "open in terminal" option you will straight go to the Command Prompt.  Third step: Type "g++ -c ./*.cpp" to compile the programs. If it succeeds you will go straight to the next step, then type "ls" to list the files in the folder. But if your program can't be compiled there will be "error" word on the command prompt, and it means that there's something wrong with your program.  As you can see there...

Informatics - Copying CPP Files Cash Flow Calculator (week 9)

Gambar
Hello everyone! Meet me again on my second blogpost after midterm break. As I stated in previous blogpost, here I will show you two C++ files as the continuation of the Cash Flow Calculator program. A C++ file (commonly referred to as a .cpp file) is a source code file used to write programs in the C++ programming language. This code will be longer than the previous one. So, without further do, here's the codes!.  The first file of the C++ file is CashFlowCalculator.cpp. This code is the longest one of the C++ code. Here's the code: This code defines a CashFlowCalculator class that calculates the present value of future cash flows. Present value is the current worth of a future amount of money or stream of cash flows, discounted at a given rate of interest. It allows you to: - Set a discount rate (e.g., interest rate). - Add cash payments with their corresponding time periods. - Calculate the total present value, which is the current worth of all future cash payments. The seco...

Informatics - Copy Header Files Code CashFlowCalculator (week 8)

Gambar
Hello everyone! How have you been? Waiting for my blogpost? haha just kidding. I'm back with my informatics program again. This time I am copying a code from my teacher. This code is about Cash Flow Calculator. Cash flow is the net balance of cash moving in and out of a business over a period of time. A cash flow calculator is a financial tool designed to help individuals, businesses, or investors estimate, analyze, and manage their cash flow over a specific period. It calculates the net amount of cash inflows and outflows, providing insight into financial health, profitability, or liquidity. Here, I'll show you the code that I copied.  The first code is the header file of the program which is CashFlowCalculator.h. Header files contain a set of predefined standard library functions. The .h is the extension of the header files in c++ and we request to use a header file in our program by including it with the c++ preprocessing directive “#include”. Line 1:  Allows the progr...