-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomePersonal.java
More file actions
369 lines (300 loc) · 14.1 KB
/
HomePersonal.java
File metadata and controls
369 lines (300 loc) · 14.1 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
/**
* Calculates Home Prices and Preferences
* All values for budget before 1,000,000 are without the zeros
* e.g. 600 = 600,000
* @author (Jacob Olshanskiy)
* @version (10-6-22)
*/
import java.util.Scanner;
public class HomePersonal
{
public static int price()
{
Scanner price = new Scanner(System.in);
System.out.println("What is your price range");
int readPrice = price.nextInt();
price.nextLine();
return readPrice;
}
public static void main(String[] args)
{
System.out.println("Hello! I will help you find the home of your dreams");
Scanner homestate = new Scanner(System.in);
System.out.println("What state are you shopping in?");
String readHomestate = homestate.nextLine();
int userPrice = price();
if (readHomestate.equals(("Alabama")) || readHomestate .equals(("alabama")) || (readHomestate.equals("AL")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop in is Orange Beach");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Vesatvia Hills");
}
else
{
System.out.println("The optimal city for you to shop in is Hoover");
}
if (readHomestate.equals(("Alaska")) || readHomestate.equals(("alaska")) || readHomestate.equals(("AK")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop in is The optimal city for you to shop is Juneau");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Anchorage");
}
else
{
System.out.println("The optimal city for you to shop in is Fairbanks");
}
if (readHomestate.equals(("Arizona")) || readHomestate.equals(("arizona")) || readHomestate.equals(("AZ")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Paradise Valley");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Scottsdale");
}
else
{
System.out.println("The optimal city for you to shop in is Cave Creek");
}
if (readHomestate.equals(("Arkansas")) || readHomestate.equals(("arizona")) || readHomestate.equals(("AK")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Fayetteville");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Bentonville");
}
else
{
System.out.println("The optimal city for you to shop in is Rogers");
}
if (readHomestate.equals(("California")) || readHomestate.equals(("california")) || readHomestate.equals(("CA")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Beverly Hills");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Los Angeles");
}
else
{
System.out.println("The optimal city for you to shop in is Canoga Park");
}
if (readHomestate.equals(("Colorado")) || readHomestate.equals(("colorado")) || readHomestate.equals(("CO")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Aspen/Vail");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Denver");
}
else
{
System.out.println("The optimal city for you to shop in is Lakewood");
}
if (readHomestate.equals(("Connecticut")) || readHomestate.equals(("connecticut")) || readHomestate.equals(("CT")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Greenwich");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Ridgefield");
}
else
{
System.out.println("The optimal city for you to shop in is Trumbull");
}
if (readHomestate.equals(("Deleware")) || readHomestate.equals(("deleware")) || readHomestate.equals(("DE")))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Greenwich");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Ridgefield");
}
else
{
System.out.println("The optimal city for you to shop in is Trumbull");
}
if (readHomestate.equals(("Florida")) || readHomestate.equals(("florida")) || readHomestate.equals((("FL"))))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Boca Raton/Palm Beach");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Highland Park");
}
else
{
System.out.println("The optimal city for you to shop in is Sunny Isles");
}
if (readHomestate.equals(("Georgia")) || readHomestate.equals(("georgia")) || readHomestate.equals((("GA"))))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Milton");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Atlana");
}
else
{
System.out.println("The optimal city for you to shop in is Greensboro");
}
if (readHomestate.equals(("Hawaii")) || readHomestate.equals(("hawaii")) || readHomestate.equals((("HI"))))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Wailea");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Kapolei");
}
else
{
System.out.println("The optimal city for you to shop in is Waianae");
}
if (readHomestate.equals(("Idaho")) || readHomestate.equals(("idaho")) || readHomestate.equals((("ID"))))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Ketchum");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Eagle");
}
else
{
System.out.println("The optimal city for you to shop in is Star");
}
if (readHomestate.equals(("Illinois")) || readHomestate.equals(("illinois")) || readHomestate.equals("IL"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Hinsdale");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Burr Ridge");
}
else
{
System.out.println("The optimal city for you to shop in is Barrington");
}
if (readHomestate.equals(("Indiana")) || readHomestate.equals(("indiana")) || readHomestate.equals("IN"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Zionsville");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Carmel");
}
else
{
System.out.println("The optimal city for you to shop in is Westfield");
}
if (readHomestate.equals(("Iowa")) || readHomestate.equals(("iowa")) || readHomestate.equals("IA"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Bettendorf");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Johnston");
}
else
{
System.out.println("The optimal city for you to shop in is Coralville");
}
if (readHomestate.equals(("Kansas")) || readHomestate.equals(("kansas")) || readHomestate.equals("KS"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Leawood");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Overland Park");
}
else
{
System.out.println("The optimal city for you to shop in is Lenexa");
}
if (readHomestate.equals(("Kentucky")) || readHomestate.equals(("kentucky")) || readHomestate.equals("KY"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Nicholasville");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Lexington-Fayette");
}
else
{
System.out.println("The optimal city for you to shop in is Union");
}
if (readHomestate.equals(("Louisiana")) || readHomestate.equals(("louisiana")) || readHomestate.equals("LA"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is New Orleans");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Natchitoches");
}
else
{
System.out.println("The optimal city for you to shop in is Hammond");
}
if (readHomestate.equals(("Maine")) || readHomestate.equals(("maine")) || readHomestate.equals("ME"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Portland");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Biddeford");
}
else
{
System.out.println("The optimal city for you to shop in is Saco");
}
if (readHomestate.equals(("Maryland")) || readHomestate.equals(("maryland")) || readHomestate.equals("MD"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Mount Rainer");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is College Park");
}
else
{
System.out.println("The optimal city for you to shop in is Bladensburg");
}
if (readHomestate.equals(("Massachusetts")) || readHomestate.equals(("massachusetts")) || readHomestate.equals("MA"))
if (userPrice > 1000000)
{
System.out.println("The optimal city for you to shop is Cambridge");
}
else if (userPrice < 999 && userPrice > 500)
{
System.out.println("The optimal city for you to shop in is Boston");
}
else
{
System.out.println("The optimal city for you to shop in is Somerville");
}
}
}