This program is basically working with text files, reading the data & performing functions:
while(s.hasNext()){ name= s.next(); mark= s.nextDouble()
It may be best to acquire your percent formatter through NumberFormat.getInstance(Locale locale) and using the setMinimumFractionDigits methods (and maybe the others).
NumberFormat.getInstance(Locale locale)
setMinimumFractionDigits