100% found this document useful (3 votes)
52 views49 pages

Instant download Practical C++20 Financial Programming: Problem Solving for Quantitative Finance, Financial Engineering, Business, and Economics 2nd Edition Carlos Oliveira pdf all chapter

Problem

Uploaded by

emarygrennvp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
52 views49 pages

Instant download Practical C++20 Financial Programming: Problem Solving for Quantitative Finance, Financial Engineering, Business, and Economics 2nd Edition Carlos Oliveira pdf all chapter

Problem

Uploaded by

emarygrennvp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 49

Download the Full Version of textbook for Fast Typing at textbookfull.

com

Practical C++20 Financial Programming: Problem


Solving for Quantitative Finance, Financial
Engineering, Business, and Economics 2nd Edition
Carlos Oliveira
https://textbookfull.com/product/practical-c20-financial-
programming-problem-solving-for-quantitative-finance-
financial-engineering-business-and-economics-2nd-edition-
carlos-oliveira/

OR CLICK BUTTON

DOWNLOAD NOW

Download More textbook Instantly Today - Get Yours Now at textbookfull.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Biota Grow 2C gather 2C cook Loucas

https://textbookfull.com/product/biota-grow-2c-gather-2c-cook-loucas/

textboxfull.com

Options and Derivatives Programming in C++20: Algorithms


and Programming Techniques for the Financial Industry 2nd
Edition Carlos Oliveira
https://textbookfull.com/product/options-and-derivatives-programming-
in-c20-algorithms-and-programming-techniques-for-the-financial-
industry-2nd-edition-carlos-oliveira/
textboxfull.com

Options and Derivatives Programming in C Algorithms and


Programming Techniques for the Financial Industry 1st
Edition Carlos Oliveira (Auth.)
https://textbookfull.com/product/options-and-derivatives-programming-
in-c-algorithms-and-programming-techniques-for-the-financial-
industry-1st-edition-carlos-oliveira-auth/
textboxfull.com

Practical Numerical C Programming: Finance, Engineering,


and Physics Applications Philip Joyce

https://textbookfull.com/product/practical-numerical-c-programming-
finance-engineering-and-physics-applications-philip-joyce/

textboxfull.com
Matlab A Practical Introduction to Programming and Problem
Solving Stormy Attaway

https://textbookfull.com/product/matlab-a-practical-introduction-to-
programming-and-problem-solving-stormy-attaway/

textboxfull.com

MATLAB A Practical Introduction to Programming and Problem


Solving Stormy Attaway

https://textbookfull.com/product/matlab-a-practical-introduction-to-
programming-and-problem-solving-stormy-attaway-2/

textboxfull.com

Engineering Economics Financial Decision Making for


Engineers 5th Edition Niall Fraser

https://textbookfull.com/product/engineering-economics-financial-
decision-making-for-engineers-5th-edition-niall-fraser/

textboxfull.com

Reading Financial Reports For Dummies For Dummies Business


Personal Finance 4th Edition Epstein

https://textbookfull.com/product/reading-financial-reports-for-
dummies-for-dummies-business-personal-finance-4th-edition-epstein/

textboxfull.com

Engineering problem solving with C Fourth Edition Delores


Maria Etter

https://textbookfull.com/product/engineering-problem-solving-with-c-
fourth-edition-delores-maria-etter/

textboxfull.com
Carlos Oliveira

Practical C++20 Financial Programming


Problem Solving for Quantitative Finance, Financial
Engineering, Business, and Economics
2nd ed.
Carlos Oliveira
Seattle, WA, USA

Any source code or other supplementary material referenced by the


author in this book is available to readers on GitHub via the book’s
product page, located at www.​apress.​com/​9781484268339 and on
coliveira.net/. For more detailed information, please visit http://​www.​
apress.​com/​source-code.

ISBN 978-1-4842-6833-9 e-ISBN 978-1-4842-6834-6


https://doi.org/10.1007/978-1-4842-6834-6

© Carlos Oliveira 2021

This work is subject to copyright. All rights are reserved by the


Publisher, whether the whole or part of the material is concerned,
specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other
physical way, and transmission or information storage and retrieval,
electronic adaptation, computer software, or by similar or dissimilar
methodology now known or hereafter developed.

The use of general descriptive names, registered names, trademarks,


service marks, etc. in this publication does not imply, even in the
absence of a specific statement, that such names are exempt from the
relevant protective laws and regulations and therefore free for general
use.

The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.

Distributed to the book trade worldwide by Apress Media, LLC, 1 New


York Plaza, New York, NY 10004, U.S.A. Phone 1-800-SPRINGER, fax
(201) 348-4505, e-mail [email protected], or visit
www.springeronline.com. Apress Media, LLC is a California LLC and the
sole member (owner) is Springer Science + Business Media Finance Inc
(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
To my family, my real source of inspiration.
Introduction
This is a hands-on book for programmers who want to learn about how
C++20 is used in the financial industry. The book concentrates on the
parts of the language that are more frequently used to write financial
software, including the STL (standard template library), templates, and
support for numerical libraries. I also describe many of the important
problems in financial engineering that are part of the day-to-day work
of financial programmers and quantitative analysts in investment banks
and hedge funds.
The book provides how-to examples that cover all the major tools
and concepts used to build working solutions for financial applications.
Each chapter teaches readers how to use advanced C++ concepts as
well as the basic building libraries used by modern C++ developers,
such as the STL and Boost. I discuss how to create correct and efficient
applications, leveraging knowledge of object-oriented and template-
based programming. I assume only a basic knowledge of C and C++ and
build on these concepts to explain techniques already mastered by
developers who are familiar with modern C++.
In the process of writing this book, I was concerned with providing
a great value for readers who are trying to use their programming
knowledge to become proficient in the style of programming used in
financial institutions such as banks, hedge funds, and other companies
in the financial industry. However, I have introduced the topics covered
in the book in a logical and structured way, so that even novice
programmers will be able to absorb the most important topics and
competencies necessary to develop financial applications in C++.
An important feature of the book is its focus on specific themes and
practical solutions for financial problems. While the emphasis is not on
the theoretical aspects of finance, I do discuss topics such as numerical
algorithms, integration techniques, and differential equations for
derivative valuation. Moreover, the reader will gain a good
understanding of how to model such problems using modern C++
concepts.
The financial literature for programmers typically has a large
number of books written from an academic standpoint, with most of
the time spent on the discussion of mathematics concepts behind
algorithms, rather than the software engineering challenges that
developers need to overcome. Therefore, in this book, I decided to focus
on working solutions for common programming problems, in the form
of code examples, offering readers much more value for their reading
efforts.

Audience
This book is intended for readers who already have a working
knowledge of programming in C, C++, or another mainstream language.
These are usually professionals or advanced students in computer
science, engineering, physics, and mathematics, who have an interest in
learning C++20 financial programming either for personal
improvement or for professional reasons. The book is also directed at
practitioners of C++ programming in financial institutions, who would
use the book as a ready-to-use reference for common development
problems.
By reading this book, you will learn how to use modern C++20
techniques to implement practical applications. Being a multi-paradigm
language, C++ is used slightly differently in each application area.
Therefore, skills that are valuable for developing desktop applications
are not necessarily the same as those used to write high-performance
software. A large part of major high-performance financial applications
are written in C++, which means that programmers who want to enter
this lucrative market need to acquire a working knowledge of a few
specific and relevant parts of the language. This book therefore would
be an excellent choice for developers who want to advance their
knowledge effectively while learning one of the most sought-after and
marketable skill sets for modern applications and high-performance
software development.

Content Overview
Here is a brief overview of the contents of each chapter.
Chapter 1 —The Fixed Income Market: The fixed income market
is a large part of the financial engineering industry, and it presents
unique computational challenges for its practitioners. C++
programming is widely used in this area, offering the ability to compute
rates and cash flow variations with incredible speed, as readers will
learn in this chapter. I present C++ coding examples that can be used in
the solution of some of the most common problems occurring in fixed
income markets. I include C++ algorithms for topics such as (1) interest
rate calculation, (2) present value computation, (3) cash flows, and (4)
valuation of bonds.
Chapter 2 —The Equities Market: Equity markets are multifaceted
and offer a great variety of investment vehicles. As a result, the number
and complexity of computational techniques used for financial analysis
of equity markets continue to grow. In this chapter, I present C++
examples for a few selected problems occurring in the equities markets
and their derivatives. I cover programming topics such as the following:
(1) moving average computation, (2) calculating volatility, (3)
computing instrument correlation, and (3) calculating fundamental
indicators.
Chapter 3 —C++ Programming Techniques in Finance: The C++
language was created as an extension of C, which means that most
programs written in C are also valid C++ programs. However, good C++
programs need to make use of high-level features made available by the
language to control program complexity. This is especially important
for financial applications, where we want to create fast and expressive
applications. In this chapter, I explore fundamental techniques that
financial C++ programmers use to write better code with less effort,
including (1) class templates, (2) auto pointers, (3) shared pointers, (4)
resource acquisition is initialization (RAII), (5) automatic type
detection, (6) exception handling, and (7) operator overloading.
Chapter 4 —Common Libraries for Financial Applications:
Modern coding in C++ uses libraries that simplify the creation of fast,
standard-conforming classes. The STL offers a set of generic, standard
containers that can be used in almost any situation. Knowing how to
use the STL well is one of the main skills necessary for effective C++
programming. Another common set of classes is contained in the Boost
libraries, which are usually the basis for the next version of the C++
standard. Readers will learn about topics such as (1) STL containers,
(2) STL algorithms, (3) boost libraries, and (4) date and time handling.
Chapter 5 —Designing Numerical Classes: At the heart of
financial applications is a set of well-designed numerical classes. This
chapter tells you how to create numerical classes that will perform
efficiently when used in production code. You will also see examples in
C++ that show how to integrate with existing numerical classes and
algorithms. You will learn how to (1) implement a matrix class, (2)
perform calculations at compilation time with templates, (3) represent
ratios with C++ templates, and (4) generate statistical data.
Chapter 6 —Plotting Financial Data: A common activity in
financial programming is the generation of data that needs to be
visualized by traders or other financial stakeholders. Most of the time,
the data needs to be plotted in the form of a chart for easy visualization.
I give a few examples that show how to plot data in C++ programs using
common libraries. You will learn about topics such as (1) using Gnuplot
to plot data, (2) designing a class to create Gnuplot charts, and (3)
plotting from a GUI (graphical user interface) application using Qt.
Chapter 7 —Linear Algebra: Linear algebra (LA) techniques are
used throughout the area of financial engineering. Therefore, it is
important to understand how the traditional methods of LA can be
applied in C++. With this goal in mind, I present a few examples that
show how to use some of the most common LA algorithms. In this
chapter, you will also learn about (1) integrating existing LA libraries
into your code, (2) basic LA operations, (3) the BLAS (basic linear
algebra subprograms) library, and (4) calculating the determinant of a
matrix with BLAS.
Chapter 8 —Interpolation: Interpolation is a commonly used
technique that finds a mathematical function approximating a set of
points. Fast interpolation is the secret for high-performance algorithms
in several areas of financial engineering. This chapter will show you
programming samples that cover a few of the most common
interpolation methods, with efficient implementation in C++. The main
techniques discussed in this chapter are (1) linear interpolation and (2)
polynomial interpolation.
Chapter 9 —Calculating Roots of Equations: Equations are one of
the building blocks of algorithms in financial engineering, and it is
important to be able to calculate equation roots efficiently. In this
chapter, you will find algorithms for different methods of calculating
equation roots, along with explanations of how they work and when
they should be used. Topics include (1) the bisection method, (2) the
secant method, and (3) Newton’s method.
Chapter 10 —Numerical Integration: Function integration is a
common part of many financial algorithms. However, it is hard to solve
certain classes of equations exactly, and numerical methods need to be
employed in such cases. In this chapter, you will see examples of C++
code that can be readily applied to common integration problems. I also
discuss the performance and the accuracy of such methods. The
programming examples in this chapter cover topics such as (1) the
midpoint method, (2) the trapezoid method, and (3) Simpson’s method.
Chapter 11 —Solving ODEs and PDEs: Differential equations are
at the heart of many techniques used in the analysis of equity markets.
There are several processes for solving and analyzing ordinary
differential equations (ODE) and partial differential equations (PDE)
that can be implemented in C++. In this chapter, I present programming
examples that cover aspects of ODEs and PDE modeling and application
in C++. Topics covered include the following: (1) solving ODEs, (2)
using the Runge-Kutta method, and (3) solving the Black-Scholes
equation.
Chapter 12 —Optimization: Optimization refers to a set of
techniques used to find the minimum or maximum of a function.
Optimization strategies are used in several areas of financial
engineering. In this chapter, I discuss programming techniques that can
be used to implement common aspects of optimization algorithms. I
provide a concise explanation of some techniques and how they are
typically implemented in C++20. You will learn about (1) modeling
optimization problems, (2) interfacing with linear programming (LP)
solvers, (3) solving two-dimensional LP problems, and (4) mixed
integer–programming models.
Chapter 13 —Asset and Portfolio Optimization: Portfolio
managers have to face the issue of balancing a portfolio for optimal
performance, depending on their predefined portfolio goals.
Optimization-based techniques have been developed to deal with some
of the most common portfolio construction problems. In this chapter,
we consider algorithms for portfolio optimization using C++. We
consider how to design such optimization code in order to get results
that are as fast and as accurate as possible. Topics include (1) creating a
portfolio model, (2) performing resource allocation, and (3) using
linear techniques for portfolio optimization.
Chapter 14 —Monte Carlo Methods: Among other programming
techniques used in equity markets analysis, Monte Carlo simulation has
a special place due to its wide applicability and easy implementation.
These methods can be used to forecast prices or to validate buying
strategies, for example. In this chapter, I provide programming
examples that can be used as part of simulation-based algorithms, with
topics such as (1) random number generation, (2) optimization through
Monte Carlo methods, and (3) simulation models for price forecasting.
Chapter 15 —Extending Financial Libraries: C++ is a complete
language that can be used to develop the most complex software.
However, it is sometimes beneficial to combine C++ libraries with
scripting languages that can simplify the creation of prototypes and
other noncritical applications. In this chapter, I show you how to use
the solutions and algorithms discussed in the text as external libraries
for scripting languages that are commonly employed in the financial
industry. In particular, you will learn how to (1) extend C++ with
Python and (2) extend C++ with Lua scripts.
Chapter 16 —Using C++ Code with R and Maxima: Financial
algorithms in C++ can be used not only as part of executable code but
also as part of other modeling and development environments. In this
chapter, I show you how to integrate financial libraries into two well-
known simulation and modeling environments for financial analysis: R
and Maxima. You will see how it is possible to create loadable modules
for these environments, incorporating complex C++ algorithms in a way
that they are ready to use from scripts written in R and Maxima.
Chapter 17 —Multithreading: Financial applications have very
stringent performance requirements. A common way to improve
response time is to use concurrency and parallel programming
techniques, such as multithreading. C++ can be used to write very
responsive multithreaded applications, and in this chapter, I explore
algorithms for creating and managing threads, with applications to
financial problems. I also cover the important topic of data access
synchronization. Topics include (1) creating threads, (2) protecting
shared memory, (3) synchronization techniques, and (4) threads using
the standard library.
Appendix A—C++20 Features: C++ is an evolving language, and in
the last few years, we have seen a renewed effort to bring much-needed
updates. The latest efforts are the C++17 and C++20 standards, and
major C++ compilers are incorporating these features at a fast pace. In
the appendix, I cover examples that show how some of these features
can improve your code and simplify the development of new programs
and libraries. You will learn about new features such as (1) auto
variables, (2) closures, (3) rvalues, (4) const expressions, and (5)
initializer lists.

Introduction to the Second Edition


In this second edition of the book, the examples and the text have been
revised to conform to the latest C++ standard, C++20. While much of
our examples continue to compile and work properly in the new
standard, we felt the need to present new C++ features that will make it
easier to develop financial applications.
For example, the appendix now presents some new features only
available in C++20. We also explain how to use threads in the standard
library, among other improvements. All examples have been tested to
make sure that we conform to the latest standard.

Compiling the Code Samples


The examples given in this book have all been tested on Windows using
the MingW gcc compiler and on Mac OS X using the Xcode 12 IDE. You
should be able to build the code, however, using any standards-
compliant C++ compiler that implements the C++20 standard. For
example, gcc is available on Linux and other platforms, and Microsoft
Visual Studio will also work on Windows.
If you use Mac OS X and don’t have Xcode installed in your
computer, you can download it for free from Apple’s developer website
at http://developer.apple.com . The code can also be compiled
from the command line, as it is explained in each chapter.
If you instead want to use MingW on Windows, you can download it
from the website www.mingw.org .
Once MingW is installed, start the command prompt from the
MingW program group in the start menu. Then, you can type gcc to
check that the compiler is properly installed.
To download the complete set of examples, visit the web page for
this book at http://coliveira.net , or navigate to
apress.com/9781484268339 and click the Download Source
Code button.
Table of Contents
Chapter 1:​The Fixed Income Market
Fixed Income Overview
Why Use C++
Calculating Simple Interest Rates
Problem
Solution
How It Works
Complete Code
Sample Use
Compound Interest
Problem
Solution
How It Works
Complete Code
Sample Use
Modeling Cash Flows
Problem
Solution
Complete Code
Running the Code
Modeling Bonds
Problem
Solution
Complete Code
Running the Code
Further Reference
Conclusion
Chapter 2:​The Equities Market
Equities Market Concepts
Market Participants
Moving Average Calculation
Problem
Solution
Complete Code
Running the Code
Calculating Volatility
Problem
Solution
Complete Code
Running the Code
Computing Instrument Correlation
Problem
Solution
Complete Code
Running the Code
Calculating Fundamental Indicators
Problem
Solution
Complete Code
Running the Code
Conclusion
Chapter 3:​C++ Programming Techniques in Finance
Calculating Interest Rates for Investment Instruments
Solution
Complete Code
Running the Code
Creating Financial Statement Objects
Solution
Smart Pointers
Using Unique Pointers
Complete Code
Transferring Ownership
Pitfalls of Unique Pointers
Determining Credit Ratings
Solution
Using Shared Pointers
Complete Code
Using the auto Keyword
Collecting Transaction Data
Solution
Exception Handling
Complete Code
Implementing Vector Operations
Solution
Operator Overloading
Complete Code
Conclusion
Chapter 4:​Common Libraries for Financial Applications
Handling Analyst Recommendations
Solution
More About STL Vectors and Maps
Complete Code
Performing Time-Series Transformations
Solution
Using STL Algorithms
Complete Code
Running the Code
Copying Transaction Files
Solution
Boost Libraries
Complete Code
Running the Code
Handling Dates
Solution
Complete Code
Running the Code
Conclusion
Chapter 5:​Designing Numerical Classes
Representing Matrices in C++
Solution
Complete Code
Using Templates to Calculate Factorials
Solution
Complete Code
Running the Code
Using C++20 Features to Compute Factorial
Representing Calmar Ratios at Compile Time
Solution
Representing Calmar Ratios
Complete Code
Running the Code
Generating Statistical Data
Solution
Probability Distributions
Complete Code
Running the Code
Conclusion
Chapter 6:​Plotting Financial Data
Plotting with Gnuplot
Solution
Complete Code
Running the Code
Plotting Data from a GUI
Solution
Complete Code
Running the Code
Conclusion
Chapter 7:​Linear Algebra
Using Basic Linear Algebra Operations
Solution
Complete Code
Using Matrix-Oriented Operations
Solution
Complete Code
Running the Application
Calculating the Determinant of a Matrix
Solution
Complete Code
Conclusion
Chapter 8:​Interpolation
Linear Interpolation
Solution
Complete Code
Running the Code
Polynomial Interpolation
Solution
Complete Code
Running the Code
Conclusion
Chapter 9:​Calculating Roots of Equations
Bisection Method
Solution
Complete Code
Running the Code
The Secant Method
Solution
Complete Code
Running the Code
Newton’s Method
Solution
Complete Code
Running the Code
Conclusion
Chapter 10:​Numerical Integration
The Midpoint Method
Solution
Complete Code
Running the Code
Trapezoid Method
Solution
Complete Code
Running the Code
Using Simpson’s Method
Solution
Complete Code
Running the Code
Conclusion
Chapter 11:​Solving ODEs and PDEs
Solving Ordinary Differential Equations
Solution
Euler’s Method
Complete Code
Running the Code
Runge-Kutta Method for Solving ODEs
Solution
Complete Code
Running the Code
Solving the Black-Scholes Equation
Solution
Complete Code
Running the Code
Conclusion
Chapter 12:​Optimization
Interfacing with a Linear Programming Solver
Solution
Linear Programming Concepts
Using LP Solver Libraries
Complete Code
Running the Code
Solving Two-Dimensional Investment Problems
Solution
Complete Code
Running the Code
Creating Mixed-Integer Programming Models
Solution
Complete Code
Running the Code
Conclusion
Chapter 13:​Asset and Portfolio Optimization
Financial Resource Allocation
Solution
Implementation
Complete Code
Running the Code
Portfolio Optimization
Solution
Complete Code
Running the Code
Extensions to Modified CAP
Solution
Complete Code
Running the Code
Conclusion
Chapter 14:​Monte Carlo Methods
Monte Carlo-Based Integral Computation
Solution
Complete Code
Running the Code
Simulating Asset Prices
Solution
Complete Code
Running the Code
Calculating Option Probabilities
Solution
Determining Profit Probabilities
Complete Code
Running the Code
Conclusion
Chapter 15:​Extending Financial Libraries
Exporting C++ Stock Handling Code to Python
Solution
Complete Code
Running the Code
Exporting C++ Classes Directly to Python
Solution
Complete Code
Running the Code
Using Lua as an Extension Language
Solution
Complete Code
Running the Code
Conclusion
Chapter 16:​Using C++ with R and Maxima
Integrating C++ with R
Solution
Complete Code
Running the Code
Integrating with the Maxima CAS
Solution
Complete Code
Running the Code
Conclusion
Chapter 17:​Multithreading
Creating Threads with the Pthreads Library
Solution
Complete Code
Running the Code
Calculating Options Probabilities in Parallel
Solution
Complete Code
Running the Code
Using Mutexes to Prevent Unsynchronized Access
Solution
Complete Code
Running the Code
Creating Threads Using the Standard Library
Conclusion
Appendix A:​Features of C++20
Automatic Type Detection
Lambdas
User-Defined Literals
Range-Based for
Rvalue References
New Function Declarator Syntax and decltype
Delegating Constructors
Inheriting Constructors
Generalized Attributes
Generalized Constant Expressions
Null Pointer Constant
Defaulted and Deleted Member Functions
Initializer Lists
Index
About the Author
Carlos Oliveira
works in the area of optimization and
quantitative finance, with more than 15
years of experience in creating scientific
and financial models in C++. During his
career, Carlos has developed several
large-scale applications for financial
companies such as Bloomberg L.P. and
Incapital LLC. Carlos obtained a PhD in
Operations Research and Systems
Engineering from the University of
Florida, an MSc in Computer Science
from UFC (Brazil), and a BSc in
Computer Science from UECE (Brazil).
He also performs academic research in
the field of combinatorial optimization,
with applications in diverse areas such as finance, telecommunications,
computational biology, transportation, and logistics. Carlos has written
more than 30 academic papers on optimization and authored four
books, including Options and Derivatives Programming in C++20:
Algorithms and Programming Techniques for the Financial Industry,
Second Edition (Apress, 2020).
© Carlos Oliveira 2021
C. Oliveira, Practical C++20 Financial Programming
https://doi.org/10.1007/978-1-4842-6834-6_1

1. The Fixed Income Market


Carlos Oliveira1
(1) Seattle, WA, USA

The fixed income market is a large part of the financial industry, and it presents
unique challenges and opportunities for its practitioners. A large amount of the
money managed by pension funds and other institutional funds is allocated to
fixed income investments. Because fixed income has a predictable income stream,
conservative money managers view it as a safer investment option when
compared to stocks and more exotic derivatives. As a result, traditional
institutions commit a lot of time and effort to the fixed income industry.
As software engineers, our main goal when working in the fixed income
market is to define computational strategies and solve problems so that our
clients can be successful. C++ is a language that is uniquely poised to the solution
of problems in this industry. This is due to its flexibility and high performance on
standard computational platforms. Moreover, C++ is a highly portable language
that can be used in a variety of computer systems.
As a result of the advantages just mentioned, C++ programing has been widely
used in this area of finance, and it is one of the preferred languages used in banks,
hedge funds, pension funds, and other large institutions that have to deal with
fixed income as one of their main investment vehicles. Programmers who work
with C++ have over the years developed software that offers useful capabilities for
fixed income analysis, such as computing prevailing interest rates and
determining cash flow valuations. All of these features need to execute with
incredible speed, with the help of some of the techniques explored in later
sections of this book. Due to its new standard, C++20, the language is nowadays
even more capable of satisfying the strict requirements demanded by the financial
industry.
In this chapter, I provide a quick introduction to this area of finance and show
you a few C++ coding examples that can be used in the solution of some of the
most common programming problems occurring in fixed income markets. These
coding examples include the solution to problems involving
Simple interest rate calculation
Compound interest rate calculation
Cash flow modeling
Determination of the present value of cash flows
Modeling and valuation of bonds
In the remainder of this chapter, I will also show you why C++20 may be the
ideal language to deal with programming problems occurring in the financial
investment industry and in particular how to solve problems in fixed income
investing. Then, I will provide a general introduction to the issues occurring in
fixed income investments and an overview of how the fixed income market works.
Then, I will start with a few programming examples that explore the concepts
discussed in the previous sections.

Fixed Income Overview


We start our discussion with a general overview of fixed income instruments.
While this is not a book on finance or economics, it is still important to have a few
concepts in place. My general goal is to describe how to use these concepts in the
solution of the practical computational problems that we discuss in the latter part
of this chapter.
In a fixed income investment, a contractually defined exchange occurs between
two parties. Both parties agree to exchange cash flows that are assigned based on
interest rates and the time of cash exchanges. Fixed income investments are very
diverse, but they include the following well-known types of investments vehicles:
Money market funds: These are short-term investments that offer a small
rate of return but at the same time provide easy availability of funds at your
own convenience. Money market funds have a very short-term horizon, and
they only pay returns that are close to the spot rate practiced by banks. Since
money market funds have a small return that is hard to predict over a long
period, they are used mostly for their liquidity.
Bonds: This is a major category of fixed income applications. Bonds pay a
predetermined interest rate for a well-defined period of time. They are issued
by a variety of institutions, including companies and all levels of government.
The American government, for example, issues treasury bonds, which are one of
the main investment vehicles used throughout the world.
Certificates of deposit: These are fixed income investments issued by banks
to their retail customers. They are simple investments that pay a fixed interest
rate for a predefined period, usually between 1 and 5 years. They are used
mainly for the convenience of small investors who lack access to more
sophisticated fixed income markets and want to invest from their own checking
or savings account.
The main reason for investors to enter the fixed income market is to take
advantage of a relatively safe investment opportunity, where the returns are
known and predictable. Compared to the stock market, fixed income investments
have the advantage of being easier to analyze. This is true because, for equity
investments, for example, it is practically impossible to determine how much
money a company will make in a few years from now. With a fixed income
investment such as a bond, however, you have a contract that guarantees the
return on the investment for a specified period of time.
Clearly, there are also risks in such fixed income investments. A well-known
risk is that of the default of the institution issuing the bond, for example. In that
case, investors may lose a part of the, or the whole, investment. The second big
risk, which is frequently overlooked by investors, is that the rate of return will not
be able to cope with inflation during the period of the investment. For example, if
the rate of return is 6% a year but inflation is around 4%, then your real rate of
return is just 2% (and that is the return before taxes).
This all shows that analyzing fixed income investments is not as easy as it
initially sounds. It is not just a matter of finding the institution paying the largest
interest rate and putting all your money on its bonds. This is one of the reasons
why money managers need reliable software that can be used to decide which is
best among myriad fixed income investments. Just as the stock market presents
thousands of possibilities that need to be carefully analyzed, the fixed income
industry has a huge number of available choices. One of the big tasks for software
developers is to create systems that can easily track these investments and help in
choosing the right options for long-term investors.

Note Fixed income investments have risks that are hard to measure because
they depend on the future economic environment. Sound fixed income
investments need to take into consideration the several risks involved. High-
quality C++ software for fixed income may help investors to take into
consideration some of these external factors.

Here are some of the most important concepts about fixed income investments
used through this chapter.
Interest rate: The return of investment in percentage points for a given period
(usually 1 year). Fixed income investments will have a well-defined interest rate
that is determined as a contractual obligation.
Principal: The amount of the original fixed income loan or investment. This is
the value over which the interest rate is calculated in the case of a fixed income
investment such as a bond.
Compound interest: Interest that is accrued over time and added to the
principal as regular interest payments are made at each period. The amount of
compound interest is regulated by the interval between interest payments.
Continuous compounding: As the number of periods increase, the effect of
compound interest becomes more pronounced. For example, compound
Random documents with unrelated
content Scribd suggests to you:
“He did it in a way that none would ever discover. He trusted Higgins, and
Sabine was an accident. Perhaps ... perhaps ... he did it to keep me here ... to
save the thing he believed in all his life.”
It was a horrible thought which she tried to kill, but it lingered, together
with the regret that she had never finished what she had begun to tell him as
they stood by the hedge talking of the letters—that one day Jean might take
the name of John Pentland. He had, after all, as much right to it as he had to
the name of de Cyon; it would be only a little change, but it would allow the
name of Pentland to go on and on. All the land, all the money, all the
tradition, would go down to Pentland children, and so make a reason for
their existence; and in the end the name would be something more then than
a thing embalmed in “The Pentland Family and the Massachusetts Bay
Colony.” The descendants would be, after all, of Pentland blood, or at least
of the blood of Savina Dalgedo and Toby Cane, which had come long ago
to be Pentland blood.
And she thought grimly, “He was right, after all. I am one of them at last
... in spite of everything. It’s I who am carrying on now.”

On the morning of the funeral, as she stood on the terrace expecting Jean
and Sybil, Higgins, dressed in his best black suit and looking horribly
awkward and ill at ease, came toward her to say, looking away from her,
“Mr. O’Hara is going away. They’re putting up a ‘For Sale’ sign on his
gate. He isn’t coming back.” And then looking at her boldly he added, “I
thought you might want to know, Mrs. Pentland.”
For a moment she had a sudden, fierce desire to cry out, “No, he mustn’t
go! You must tell him to stay. I can’t let him go away like that!” She wanted
suddenly to run across the fields to the bright, vulgar, new house, to tell him
herself. She thought, “He meant, then, what he said. He’s given up
everything here.”
But she knew, too, that he had gone away to fight, freed now and moved
only by his passion for success, for victory.
And before she could answer Higgins, who stood there wanting her to
send him to Michael, Miss Egan appeared, starched and rigid and wearing
the professional expression of solemnity which she adopted in the presence
of bereaved families. She said, “It’s about her, Mrs. Pentland. She seems
very bright this morning and quite in her right mind. She wants to know
why he hasn’t been to see her for two whole days. I thought....”
Olivia interrupted her quietly. “It’s all right,” she said. “I’ll go and tell
her. I’ll explain. It’s better for me to do it.”
She went away into the house, knowing bitterly that she left Miss Egan
and Higgins thinking of her with pity.
As she climbed the worn stair carpet to the north wing, she knew
suddenly a profound sense of peace such as she had not known for years. It
was over and done now, and life would go on the same as it had always
done, filled with trickiness and boredom and deceits, but pleasant, too, in
spite of everything, perhaps because, as John Pentland had said, “One had
sometimes to pretend.” And, after all, Sybil had escaped and was happy.
She knew now that she herself would never escape; she had been too
long a part of Pentlands, and she knew that what the old man had said was
the truth. She had acted thus not because of duty, or promises, or nobility, or
pride, or even out of virtue.... Perhaps it was even because she was not
strong enough to do otherwise. But she knew that she had acted thus
because, as he said, “There are things, Olivia, which people like us can’t
do.”
And as she moved along the narrow hall, she saw from one of the deep-
set windows the figure of Sabine moving along the lane in a faint cloud of
dust, and nearer at hand, at the entrance of the elm-bordered drive, Aunt
Cassie in deep black, coming along briskly in a cloud of crape. No, nothing
had changed. It would go on and on....
The door opened and the sickly odor of medicines flooded the hallway.
Out of the darkness came the sound of a feeble, reed-like voice, terrible in
its sanity, saying, “Oh, it’s you, Olivia. I knew you’d come. I’ve been
waiting for you....”

THE END
Cold Spring Harbor, Long Island
June 4, 1925
St. Jean-de-Luz, B. P., France
July 21, 1926
Typographical errors corrected by
the etext transcriber:
lay figure=> clay figure {pg 6}
sarcely giving=> scarcely giving
{pg 205}
*** END OF THE PROJECT GUTENBERG EBOOK EARLY
AUTUMN ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying copyright
royalties. Special rules, set forth in the General Terms of Use part of
this license, apply to copying and distributing Project Gutenberg™
electronic works to protect the PROJECT GUTENBERG™ concept
and trademark. Project Gutenberg is a registered trademark, and
may not be used if you charge for an eBook, except by following the
terms of the trademark license, including paying royalties for use of
the Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is very
easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund from
the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law in
the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name
associated with the work. You can easily comply with the terms of
this agreement by keeping this work in the same format with its
attached full Project Gutenberg™ License when you share it without
charge with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears, or
with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning of
this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1 with
active links or immediate access to the full terms of the Project
Gutenberg™ License.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or expense
to the user, provide a copy, a means of exporting a copy, or a means
of obtaining a copy upon request, of the work in its original “Plain
Vanilla ASCII” or other form. Any alternate format must include the
full Project Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in paragraph
1.F.3, the Project Gutenberg Literary Archive Foundation, the owner
of the Project Gutenberg™ trademark, and any other party
distributing a Project Gutenberg™ electronic work under this
agreement, disclaim all liability to you for damages, costs and
expenses, including legal fees. YOU AGREE THAT YOU HAVE NO
REMEDIES FOR NEGLIGENCE, STRICT LIABILITY, BREACH OF
WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE
PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE
FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving it,
you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or entity
that provided you with the defective work may elect to provide a
replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.
1.F.6. INDEMNITY - You agree to indemnify and hold the
Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and distribution
of Project Gutenberg™ electronic works, harmless from all liability,
costs and expenses, including legal fees, that arise directly or
indirectly from any of the following which you do or cause to occur:
(a) distribution of this or any Project Gutenberg™ work, (b)
alteration, modification, or additions or deletions to any Project
Gutenberg™ work, and (c) any Defect you cause.

Section 2. Information about the Mission of


Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many small
donations ($1 to $5,000) are particularly important to maintaining tax
exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About Project


Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.

Project Gutenberg™ eBooks are often created from several printed


editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

textbookfull.com

You might also like