- C++ Program to Find Mean and Variance using header files and function overloading. We will learn how to create header files and use them in our program. We will also learn how to use the functions defined in the header file in our program. This is our topic:
- This project has 5 files. The first file is the main.cpp file which contains the main function. The second file is the header file which contains the function declarations. The third file is the source file which contains the function definitions. The fourth file is the .gitignore file which contains the files that are not to be uploaded to the repository. The fifth file is the README.md file which contains the description of the project.
- The term variance refers to a statistical measurement of the spread between numbers in a data set. More specifically, variance measures how far each number in the set is from the mean (average), and thus from every other number in the set. Variance is often depicted by this symbol: σ2. It is used by both analysts and traders to determine volatility and market security. Variance is calculated by using the following formula:
- Open the terminal and run the following commands (for Windows)
> git clone https://github.com/Tuanpluss02/Tutorial_3_Computer_Programming.git
> cd Tutorial_3_Computer_Programming
> g++ main.cpp -o main.exe
> main.exe
- C++ Programming
- Function Overloading
- Header Files
- Do Ngoc Tuan - B20DCVT330 (Leader)
- Nguyen Thanh Dat - B20DCVT097
- Nguyen Manh Lam - B20DCVT225
- Le Cong Luc - B20DCVT242
- Le Duy Hieu - B20DCVT145
- Nguyen Xuan Quan - B20DCVT305
- Pham Hong Lam - B20DCVT226
- Pham Quang Huy - B20DCVT190
- Tran Han Son - B20DCVT314
- Do Anh Phuong - B20DCVT298
- Nguyen Minh Son - B20DCVT312
- Ha Viet Manh Quoc - B20DCVT309
- Pham Van Hung - B20DCVT198
- Luong Ngoc Tung - B20DCVT346
- Thanks to
Nguyen Trung Anh- our teacher and the universityPosts and Telecommunications Institute of Technologyfor giving us the opportunity to learn and practice.

