-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
96 lines (46 loc) · 1.01 KB
/
Source.cpp
File metadata and controls
96 lines (46 loc) · 1.01 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include <iostream>
#pragma once
#include "torquecal.h"
using namespace std;
int main()
{
int a = 1;
torquecal camaro;
while (a == 1)
{
int b = 0;
cout << " Choose what you would like to do 1 for force to wheels calculation \n 2 for changing the variables \n 3 for viewing acceleration \n 4 for acceleration with driveshaft loses \n 5 change the torque ";
cin >> b;
if (b == 5)
{
cout << "\n Enter the torque you would like to change to ";
cin >> camaro.torque;
cout << "\n";
}
if (b == 0)
{
cout << " you didnt enter anything ";
}
else if (b == 1)
{
camaro.force();
}
else if (b == 2)
{
camaro.change();
}
else if (b == 3)
{
camaro.acceleration();
}
else if (b == 4)
{
camaro.real();
}
else {
b = 0;
}
cout << " \n do you wish to continue . type 1 for yes type 0 for no \n ";
cin >> a;
}
}