Help with designing a Java driver program
Posted on 2006-04-13
I need to determine inventory requirements, assuming that one group of customers always return their rented video tapes late (Group A) and another group always returns their rented video tapes on-time (Group B). I want to see how long it would take before Group A exceeds Group B. My method would use String Group, int Number, double lateFeePercent.
I have a class program (with data) already that compiles OK, but I need some guidance with assembling a test program (driver program) that will contain the methods.
I want to create a method in addition to the main method in the driver program that will be callable within the driver and will execute its statements each time the main method runs. If the driver contains a while loop, should the while loop be placed as the declarations for this second method (between the method's braces) , or after the method. I am getting a "cannot find symbol" compiler error with an early version of my driver program. How do ensure that the driver program is picking up information from the class program, or do I need to separately declare the variables in the driver program?
Any help would be appreciated.