I there a way round off the decimals so that you don't get any zero after the decimal point? I don't know how to get printf to do it because it rounds off to a fixed number of digits after the decimal points.
Specifically in this
System.out.printf("%s's grade is %.1f", name, avg);
Let's say: 77.250 and 14.50 could be the value of avg, how do I make 77.250 --> 77.25 and 14.50 --> 14.5 at the same time?