Question: how do i create a main method that would test the 5 algorithims that i have written. *Toms Trucking.java X package lab; import java.util.Scanner; public
*Toms Trucking.java X package lab; import java.util.Scanner; public class Tons Trucking 4 5 private static int nunTrucks; 6 private static int() maxCapo Teach Truck; private static double Il LoadofEach Truck; 8 public static void setNunOfTrucksForTheBay() { Scanner - new Scanner(Systen.in); 11 boolean done = false; while(doneasfalse) { System.out.println("Please enter the number of trucks you have today"); int num = scan.nextInt(); if(num >= 2) { 16 nunTrucks = num; LoadofEachtruck = new double (numTrucks): 18 done - true; Helse System.out.println("The number must be two or greater than two. Please try again."); 21 22 23 240 public static void setTheMaxCapacityofEachTruck() { maxCapofEachTruck = new int Inum Trucks): 26 Scanner akan = new Scanner(System.in); for(int index = ; index 28 29 30 31 36 370 38 19 40 public static void set TheloadorEach Truck() { Scanner ssan = new Scanner(System.in); for(int index = 0; index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
