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

how do i create a main method that would test the 5 algorithims that i have written.
how do i create a main method that would test the 5

*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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!