Java tutorial
//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; } }