-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriver.java
More file actions
34 lines (27 loc) · 1.07 KB
/
Driver.java
File metadata and controls
34 lines (27 loc) · 1.07 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
/**
* @author Mohammad Mukhtaruzzaman
* @version 2019-09-18
*/
import java.io.IOException;
public class Driver
{
public static void main(String[] args) throws IOException
{
MesoInherit.readStations();
String stID = "NRMN";
MesoInherit mesoInherit = new MesoInherit(new MesoStation(stID));
PosAvg posAvg = new PosAvg(stID);
System.out.println("The Index of the city is: " + posAvg.indexOfStation());
System.out.println(posAvg);
System.out.print("\n");
System.out.println("Ascii Ceiling is " + mesoInherit.calAverage()[0]);
System.out.println("Ascii Floor is " + mesoInherit.calAverage()[1]);
System.out.println("Ascii Average is " + mesoInherit.calAverage()[2]);
System.out.print("\n");
System.out.println("Letter Avg: " + mesoInherit.letterAverage());
System.out.print("\n");
LetterAvg letterAvg = new LetterAvg(mesoInherit.letterAverage());
System.out.println("Total number of stations starting with letter '" + mesoInherit.letterAverage() + "' is " + letterAvg.numberOfStationWithLetterAvg() + ".");
System.out.print(letterAvg);
}
}