Percentage Visualization


 
















"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 :

  1. Graphics
  2. Iostream


Library functions

The following library functions has been used :

  1. Under graphics header file
    1. Arc
    2. Floodfill
    3. Initwindow
    4. Rectangle
    5. Setcolor
    6. Setfillstyle
  2. Under iostream header file
    1. Delay
    2. Getch

 

Concepts used

Topics/ concepts of this language that you need to know for making this type of game :

  1. For looping statement
  2. 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

Article Ad1