Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static int totalGrade(float totalMiles, float penaltyPoint) {

        float safetyPoint = totalMiles + penaltyPoint;
        float totalGrade = (safetyPoint / totalMiles) * 100;
        return Math.round(totalGrade);

    }
}