/** * * * Driver class * Name: * Course: * Section: * Last Modified: * Known Bugs: */ import java.io.*; import java.text.*; public class Driver { public static void main(String args[]) throws Exception { Stock MSFT = new Stock("msft.txt"); MSFT.print(); DecimalFormat precision = new DecimalFormat( "0.00" ); System.out.println("The highest stock price is " + MSFT.max()); System.out.println("The lowest stock price is " + MSFT.min()); System.out.println("The average stock price is " + precision.format(MSFT.average())); System.out.println("The Return on Investment is " + precision.format(MSFT.ROI()) + "%"); System.out.println("The median stock price is " + MSFT.median()); } }