New to Java, relatively new to programming. The code below is the last couple lines of a program that already runs perfectly -- I just want to round the end result (the newTuition variable) and limit it to two significant figures.
newTuition, TUITIONINCREASE and tuition are all doubles.
newTuition = ((TUITIONINCREASE * .01) * tuition) + tuition + ".");
System.out.println("Your current tuition is $" + tuition + ". It will rise next year by " + TUITIONINCREASE + "% and " +
"your new tuition will be $" + newTuition);