This program is basically working with text files, reading the data & performing functions:
while(s.hasNext()){ name= s.next(); mark= s.nextDouble()
You can do it using String.format
System.out.println(String.format("%s%.2f%s","Percentage In Exam: " ,percent,"%"));