Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static Double finalScore(Double finalScore, int questionsAnswered, double timeLeft) {
        double multiplier = questionsAnswered + (timeLeft / (timeLeft * 10));
        finalScore = finalScore.doubleValue() * 20 * multiplier;
        finalScore = finalScore * 10;
        return finalScore;

    }
}