Golf Project

Ratings: 1 Star2 Stars3 Stars4 Stars5 Stars (4.60 out of 5) - Rate Now!
Loading...

Download Category:

Golf Project.zip - (87.93 KB)
[
Golf Project/.classpath
Golf Project/.project
Golf Project/GolfScore$1.class
Golf Project/GolfScore$2.class
Golf Project/GolfScore$3.class
Golf Project/GolfScore$4.class
Golf Project/GolfScore.class
Golf Project/GolfScore.java
Golf Project/GolfScore.txt
Golf Project/PlayerScore.class
Golf Project/PlayerScore.java
Golf Project/Question.txt
Golf Project/Screenshot_1.png
]

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 the par for that hole (3, 4, or 5) and your core for that hole should be displayed in a label. Provide buttons for the following:
• On 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 separate (non-gui) class encapsulating the analysis, then instantiate an object of that class inside your GUI class and call the various methods as needed.

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.