Question
I need to write an application that displays a frame containing two labels that displays a first name and one that displays a last name, also I need to design and implement a program to process golf scores, the scores for four golfers are stored in a text file. Each line represents one hole and the file contains 18 lines. Each line contains five values: Par for the hole followed by the number of strokes each golfer used on that hole, determine the winner and produce a table showing how well each golfer did compared to par.....this is a lifesaver!!
Explanation / Answer
please rate - thanks Sorry-Cramster rule 1 question per post import java.util.*; import java.io.*; public class untitled {public static void main(String[] args)throwsFileNotFoundException {intgolf1=0,golf2=0,golf3=0,golf4=0,sum1=0,sum2=0,sum3=0,sum4=0,par=0,winner=0,i,g; Scanner in=new Scanner(new File("golf.txt")); System.out.println("hole par golfer1 golfer2 golfer3 golfer4"); for(i=0;i