Below is a select menu generated from an array of some baseball teams with above average players and below average players in a season using the select command:
Blue Jays
Red Sox
Yankees
Rays
Orioles
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Below is a bulleted list generated from an associative array of some baseball teams cities:
Main Cities
TOR : Toronto
BOS : Boston
NYY : New York
TB : Tampa Bay
BAL : Baltimore
More Cities
LAD : Los Angeles
SF : San Francisco
SD : San Diego
COL : Seattle
ARI : Arizona
Last Cities
CHC : Chicago Cubs
STL : St. Louis
CIN : Cincinnati
PIT : Pittsburgh
MIL : Milwaukee
Below is an array that prints the original order, sorted by key, and sorted by element in that order:
Original Order:
Vladimir Guerrero Jr. : 9.5
Tarik Skubal : 8
Aaron Judge : 10
Garrett Crochet : 7.5
Julio Rodriguez : 6
Sandy Alcantara : 4.5
Sorted by Key:
Aaron Judge : 10
Garrett Crochet : 7.5
Julio Rodriguez : 6
Sandy Alcantara : 4.5
Tarik Skubal : 8
Vladimir Guerrero Jr. : 9.5
Sorted by Element:
Sandy Alcantara : 4.5
Julio Rodriguez : 6
Garrett Crochet : 7.5
Tarik Skubal : 8
Vladimir Guerrero Jr. : 9.5
Aaron Judge : 10