class Metrics {

    private Metrics() { }

    public static double inheritedRiskScore(final int critical, final int high, final int medium, final int low, final int unassigned) {<FILL_FUNCTION_BODY>}

    public static double vulnerableComponentRatio(final int vulnerabilities, final int vulnerableComponents) {
        double ratio = 0.0;
        if (vulnerableComponents > 0) {
            ratio = (double) vulnerabilities / vulnerableComponents;
        }
        return ratio;
    }
}

        return (double) ((critical * 10) + (high * 5) + (medium * 3) + (low * 1) + (unassigned * 5));
    
<no_super_class>