"Percentage Visualization" is the smallest project I made so far. It simply takes input (percentage) form user and visualizes the percentage in pie chart. While inputting an input, if user need to exit the program, user can simply input 0.
How to download code?
- Click here for source code.
- New window will open where there is a source code of this project. Download all the files.
- Remember that this project runs in Dev C++.
Demo of this game :
For more source code and tutorial, SUBSCRBE to my YouTube channel.
Development platform
Computer programming language has been used to develop this project.
Compiler
Dev C++ has been used as compiler in this project whose version is 5.11.
Header files used
The header files used in this project are as follows :
- Graphics
- Iostream
Library functions
The following library functions has been used :
- Under graphics header file
- Arc
- Floodfill
- Initwindow
- Rectangle
- Setcolor
- Setfillstyle
- Under iostream header file
- Delay
- Getch
Concepts used
Topics/ concepts of this language that you need to know for making this type of game :
- For looping statement
- Graphics
Logic description
The main logic behind this project is the use of arc library function. The input provided in percentage is converted into the point using the formula : point = input*3.6. Now, for-loop is initiated where only the radius of the arc is decreased for each iteration. Delay function has been used inside for-loop for interactive visualization.
No comments:
Post a Comment