-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTarget KDA Calculator.cpp
More file actions
50 lines (46 loc) · 987 Bytes
/
Copy pathTarget KDA Calculator.cpp
File metadata and controls
50 lines (46 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//Target KDA calculator 19 Aug 2018
#include <bits/stdc++.h>
#include <windows.h>
#include <math.h>
using namespace std;
int main()
{
float k,t,r,x,X;
while (true)
{
cout<<"Enter total number of games : ";
cin>>t;
cout<<"Enter average KDA : ";
cin>>k;
cout<<"Enter target KDA : ";
cin>>r;
x = r * (t+1) - k * t;
if ( int(x) == x )
cout<<"You need to achieve a KDA of "<<x<<" on your next game to get a KDA of "<<r<<"."<<'\n';
else
{
X = ceil(x);
cout<<"Get "<<X<<" KDA on your next game and you'll get "<<(X+k*t)/(1+t)<<" average KDA."<<'\n';
}
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
cout<<"."<<'\n';
Sleep(1000);
system("CLS");
}
}