Computer Science 210
 Data Structures
Fall 2020, Siena College
Late BlueJ Project
Click here to download a BlueJ project for Late.
Late Source Code
The Java source code for Late is below. Click on a file name to download it.
/**
 * Late penalty calculator for CSIS 210
 *
 * @author Jim Teresco
 * 
 */
public class Late {
    private static final double base = 1.08;
    
    public static void main(String[] args) {
        int lateness=1;
        double penalty = 0.0;
        
        while (penalty < 100) {
            penalty  = Math.pow(base, lateness);
            System.out.println("Hour " + lateness + " late = " + penalty + "% penalty");
            lateness++;
        }
    }
}