-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
62 lines (54 loc) · 1.47 KB
/
main.cpp
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
51
52
53
54
55
56
57
58
59
60
61
62
#include <iostream>
#include "SpecialReletivity.h"
//#include "VectorDatabase.h"
#include "Fundamentals.h"
using namespace std;
int main() {
Fundamentals test;
string option;
do{
// ui is a constructor for the class
SpecialReletivity Object;
cin >> option;
if(option =="1"){
Object.timeDilation();
}
else if(option =="2"){
Object.lenghtContraction();
}
else if(option =="3"){
Object.galileanTransform();
}
else if(option =="4"){
Object.lorenzTransformations();
}
else if(option =="5"){
Object.dopplerEffectUI();
}
else if(option =="6"){
Object.relativisticMomentumUI();
}
else if(option =="7"){
Object.reletiviticKineticEnergyUI();
}
else if(option =="8"){
Object.reletiviticEnergyUI();
}
else if(option =="9"){
Fundamentals Motion;
Motion.gamma();
}
else if(option =="10"){
Fundamentals Motion;
Motion.betaUI();
}
else{
cout << "invalid input try again"<<endl;
main();
}
std::cout << "do you want to perform another calculation press Y/N" << std::endl;
cin >> option;
}while(option == "y" || option =="Y");
//system("pause");
return 0;
}