public class Main
extends Object
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main driver for the program.
|
public static void main(String[] args)
Main driver for the program. Will prompt a client (System.in) for a file name to read, and either use the file name or default to STEM_Diversity_Data.csv if no file is entered. It will then ask the client for a term, and use that term. If not term is entered, defaults to 202110 (Spring 2021).
Once a file and term is set, creates a new Data object
with the term entered, loads the data with the file provided Data.loadData(String),
and then prints the stats. Program exists after one run.
Enter a file to load (STEM_Diversity_Data.csv):
Term (202110):
Natural Sciences: Major Male Female
Psychology 23.70% 76.30%
Zoology 17.61% 82.39%
Data Science 70.27% 29.73%
Biological Science 27.71% 72.29%
Computer Science 83.61% 16.39%
Statistics 65.08% 34.92%
Chemistry 44.53% 55.47%
Biochemistry 40.07% 59.93%
Mathematics 54.67% 45.33%
Applied Computing Technology 85.07% 14.93%
Physics 80.56% 19.44%
Natural Sciences 41.67% 58.33%
Engineering: Major Male Female
Biomedical Engineering with ME 53.08% 46.92%
Biomedical Engineering with EE 66.67% 33.33%
Mechanical Engineering 87.55% 12.45%
Chemical & Biological Engineer 63.49% 36.51%
Electrical Engineering 88.89% 11.11%
Computer Engineering 91.53% 8.47%
Civil Engineering 75.98% 24.02%
Environmental Engineering 53.26% 46.74%
Biomedical Engineering with CB 42.47% 57.53%
Engrg Sci and Intl Studies 42.86% 57.14%
Engineering Science 71.43% 28.57%
Biomedical Engineering with EL 66.67% 33.33%
Engineering Open Option 100.00% 0.00%
Enter a file to load (STEM_Diversity_Data.csv): STEM_Diversity_Data.csv
Term (202110): 201990
Natural Sciences: Major Male Female
Psychology 24.49% 75.51%
Zoology 19.77% 80.23%
Biological Science 29.86% 70.14%
Computer Science 86.75% 13.25%
Statistics 62.07% 37.93%
Biochemistry 42.36% 57.64%
Chemistry 47.88% 52.12%
Mathematics 58.26% 41.74%
Applied Computing Technology 81.51% 18.49%
Physics 81.63% 18.37%
Data Science 75.56% 24.44%
Natural Sciences 50.00% 50.00%
Engineering: Major Male Female
Electrical Engineering 88.72% 11.28%
Biomedical Engineering with EE 61.11% 38.89%
Mechanical Engineering 86.78% 13.22%
Biomedical Engineering with ME 55.16% 44.84%
Civil Engineering 74.89% 25.11%
Chemical & Biological Engineer 64.41% 35.59%
Computer Engineering 92.41% 7.59%
Engineering Open Option 80.30% 19.70%
Biomedical Engineering with CB 43.13% 56.88%
Environmental Engineering 48.60% 51.40%
Engineering Science 78.38% 21.62%
Engrg Sci and Intl Studies 28.57% 71.43%
Biomedical Engineering with EL 100.00% 0.00%
args - no used, included for consistencyData.loadData(String),
Data.printStats(),
String.isEmpty()