I want to make a program that gives you a graph with "*" and "." , "*" are % of how much work has been done and "." how much work has to be done. There can only be 80 signs ("*"/".").
So if i have for example 80% this means i have to get a graph that shows me 80% out of 80 signs "*" and other 20% "." .
Example:
1 2 3 4 5 6 7 8 9
...
double a
cout<<"How much work have you done: "<<endl;
cin>>a;
// Now I need to have something like that :
// You have done 80% of work.
// ****************************************************************....................................
Hi there, this will give you the output you want
for example : Work done = 4% then the not done work is 96% so the result will be
( 4 stars / 96 dots )
How much work have you done : 4
You have done 4 % of work
****/...........................................................................
.....................