-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNoPixelBankSplit.cpp
178 lines (150 loc) · 5.94 KB
/
NoPixelBankSplit.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#include <iostream>
using namespace std;
int main()
{
// Prices of lootable items in bank.
double bags = 250;
double inkbags = 50000;
double cash = 1;
double goldbars = 5000;
double gems = 800;
//List Options
int listoption;
// User Input Variables
double numsmallbags, numinkbags, numcash, numgoldbars, numgems;
double bankmembers, person1, person2, person3, person4;
// Variables for Result Display
double totalperson1, totalperson2, totalperson3, totalperson4;
double totalinvested, totalsmallbags, totalinkbags, totalcash, totalgoldbars, totalgems,totalpayout,totalprofit;
//Display option for user to choose from.
cout<<"Choose one of these option: \n";
cout<<"1 - Bank Heist Payout (Do this Inside of the Bank)"<<endl;
cout<<"2 - Splitting Heist Payout (Do this Outside of the Bank)"<<endl;
cin>>listoption;
if (listoption == 1)
{
// Process User Input for Loot
cout<<"Amount of Small Bags: "<<endl;
cin>>numsmallbags;
cout<<"Amount of Ink Bags: "<<endl;
cin>>numinkbags;
cout<<"Amount of Cash: "<<endl;
cin>>numcash;
cout<<"Amount of Gold Bars: "<<endl;
cin>>numgoldbars;
cout<<"Amount of Gems: "<<endl;
cin>>numgems;
cout<<" "<<endl;
// Do all the math for the data entered
totalsmallbags = numsmallbags * bags;
totalinkbags = numinkbags * inkbags;
totalcash = numcash * cash;
totalgoldbars = numgoldbars * goldbars;
totalgems = numgems * gems;
totalpayout = totalsmallbags + totalinkbags + totalcash + totalgoldbars + totalgems;
//Display Payout
cout<<"Bank Heist Total Payout: $"<<totalpayout<<endl;
system("pause");
} else if (listoption == 2) {
// Proccess User Input for Participants of the heist and the total they've invested.
cout<<"Total Participants: "<<endl;
cin>>bankmembers;
// Different dialog per amount of bank members
if (bankmembers == 1) {
cout<<"Enter amount Person 1 Invested: "<<endl;
cin>>person1;
}else if (bankmembers == 2) {
cout<<"Enter amount Person 1 Invested: "<<endl;
cin>>person1;
cout<<"Enter amount Person 2 Invested: "<<endl;
cin>>person2;
}else if (bankmembers == 3) {
cout<<"Enter amount Person 1 Invested: "<<endl;
cin>>person1;
cout<<"Enter amount Person 2 Invested: "<<endl;
cin>>person2;
cout<<"Enter amount Person 3 Invested: "<<endl;
cin>>person3;
}else if (bankmembers == 4) {
cout<<"Enter amount Person 1 Invested: "<<endl;
cin>>person1;
cout<<"Enter amount Person 2 Invested: "<<endl;
cin>>person2;
cout<<"Enter amount Person 3 Invested: "<<endl;
cin>>person3;
cout<<"Enter amount Person 4 Invested: "<<endl;
cin>>person4;
}
// Process User Input for Loot
cout<<"Amount of Small Bags: "<<endl;
cin>>numsmallbags;
cout<<"Amount of Ink Bags: "<<endl;
cin>>numinkbags;
cout<<"Amount of Cash: "<<endl;
cin>>numcash;
cout<<"Amount of Gold Bars: "<<endl;
cin>>numgoldbars;
cout<<"Amount of Gems: "<<endl;
cin>>numgems;
cout<<" "<<endl;
// checks the amount of bank members and does the proper math
if (bankmembers == 1 ){
totalinvested = person1;
}else if (bankmembers == 2){
totalinvested = person1 + person2;
}else if (bankmembers == 3){
totalinvested = person1 + person2 + person3;
}else if (bankmembers == 4){
totalinvested = person1 + person2 + person3 + person4;
}
// Do all the math for the data entered
totalsmallbags = numsmallbags * bags;
totalinkbags = numinkbags * inkbags;
totalcash = numcash * cash;
totalgoldbars = numgoldbars * goldbars;
totalgems = numgems * gems;
totalpayout = totalsmallbags + totalinkbags + totalcash + totalgoldbars + totalgems;
totalprofit = totalpayout - totalinvested;
totalperson1 = totalprofit / bankmembers + person1;
totalperson2 = totalprofit / bankmembers + person2;
totalperson3 = totalprofit / bankmembers + person3;
totalperson4 = totalprofit / bankmembers + person4;
//Display Results for heist
cout<<"Participants: "<<bankmembers<<endl;
cout<<"Total Invested in Heist: $"<<totalinvested<<endl;
cout<<" "<<endl;
cout<<"Cost of Small Bags: $"<<totalsmallbags<<endl;
cout<<"Cost of Ink Bags: $"<<totalinkbags<<endl;
cout<<"Cost of Gold Bars: $"<<totalgoldbars<<endl;
cout<<"Cost of Gems: $"<<totalgems<<endl;
cout<<"Cash Received: $"<<totalcash<<endl;
cout<<" "<<endl;
cout<<"Bank Heist Total Payout: $"<<totalpayout<<endl;
cout<<"Bank Heist Total Profit: $"<<totalprofit<<endl;
cout<<" "<<endl;
//checks the amount of bank members and displays the proper dialog
if (bankmembers == 1) {
cout<<"Person 1 Receives: $"<<totalperson1<<" or "<<totalperson1/bags<<" Small Bags"<<endl;
system("pause");
}else if (bankmembers == 2) {
cout<<"Person 1 Receives: $"<<totalperson1<<" or "<<totalperson1/bags<<" Small Bags"<<endl;
cout<<"Person 2 Receives: $"<<totalperson2<<" or "<<totalperson2/bags<<" Small Bags"<<endl;
system("pause");
}else if (bankmembers == 3) {
cout<<"Person 1 Receives: $"<<totalperson1<<" or "<<totalperson1/bags<<" Small Bags"<<endl;
cout<<"Person 2 Receives: $"<<totalperson2<<" or "<<totalperson2/bags<<" Small Bags"<<endl;
cout<<"Person 3 Receives: $"<<totalperson3<<" or "<<totalperson3/bags<<" Small Bags"<<endl;
system("pause");
}else if (bankmembers == 4) {
cout<<"Person 1 Receives: $"<<totalperson1<<" or "<<totalperson1/bags<<" Small Bags"<<endl;
cout<<"Person 2 Receives: $"<<totalperson2<<" or "<<totalperson2/bags<<" Small Bags"<<endl;
cout<<"Person 3 Receives: $"<<totalperson3<<" or "<<totalperson3/bags<<" Small Bags"<<endl;
cout<<"Person 4 Receives: $"<<totalperson4<<" or "<<totalperson4/bags<<" Small Bags"<<endl;
system("pause");
}
} else {
cout<<"You're an actual retard. Try again you autistic fuck."<<endl;
system("pause");
}
return 0;
}