Write a GUI-Based program that analyzes a round of golf. You will retrieve the d
ID: 3561468 • Letter: W
Question
Write a GUI-Based program that analyzes a round of golf. You will retrieve the data for 18 holes from a text file. On each line in the file will be par for that hole (3, 4, or 5) and your score for that hole. Your program should read the file and display a combo box listing the 18 holes. When the user selects the hole, the score for that hole should be displayed in a label. Provide buttons for the following:
One button, when clicked, displays whether your overall score was over par, under par, or par.
Another button, when clicked, displays the number of holes for which you made par.
Another button, when clicked, displays how many birdies you scored (a birdie on a hole is 1 under par).
For this, you should design and code a seperate (non-GUI) class encapsulating the analysis, then instantiate an object of that class inside your GUI class and call the various methods as needed.
Explanation / Answer
Hi There, I am posting the solution code files.
If you face any difficulty than feel free to ask for help.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.