<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.util.Random;
import java.util.Scanner;

/**
 * Driver class for the grocery store simulation.
 * 
 * @author Nathan Sprague
 * @version 04/12/2022
 */
public class MartDriver {

    /**
     * Run the simulation and display the results.
     * 
     * @param args command-line arguments
     */
    public static void main(String[] args) {
        int totalSeconds = 8 * 60 * 60;  // 8 hours
        int numCashiers = 8;
        double customerProbability = .05;
        int maxItems = 100;
        int maxLength = 20;

        // UNCOMMENT TO COMPLETE THE LAST PART OF THE LAB
        // System.out.println("What aisle type should be used?");
        // System.out.println(" 1 - Simple");
        // System.out.println(" 2 - Limited");
        // System.out.println(" 3 - Sorted");
        // Scanner in = new Scanner(System.in);
        // int type = in.nextInt();

        MartSimulation sim = new MartSimulation(totalSeconds,
                customerProbability, maxItems);
        Random gen = sim.getGenerator();
        for (int i = 0; i &lt; numCashiers; i++) {
            sim.addAisle(new LimitedAisle(gen, maxLength));
        }
        sim.runSimulation();
        sim.printResults();
    }

}
</pre></body></html>