Please help me answer this problem. It requires the development of 3.docx

This preview shows page 1 - 4 out of 8 pages.

Background image
Please help me answer this problem. It requires the development of 3 classes - 2 classes for types of objects and 1 tester class. Please explain with comments what is being done, so that I can debug my code. Thank you!-----------------------------------------------------------------------------------------------------------------------------------------------------------------Develop a program that will handle a Golfer and his scores. The program will be comprised of three classes: a Golfer class that will manage all the golfer's scores, a Score class and a Tester class to drive the other classes. To accomplish this task the program will use a partially filled array to store the golfers scores.The Golfer Class1. This is a class designed to represent a golfer including his name, home course, id number and an Array of Score Objects.The golfers scores consist of several pieces of information include the course, the par score for the course, the courses rating and course slope, date score was shot and the score. Each field is explained in detail below. Remember part of being a strong programmer is being flexible enough to learn about new domains, you don't have to be a golfer or a doctor or a banker to write application in those domains.2. Instance Variables.name - A String representing the golfer's name����homeCourse - A String representing the golf course����
where the player's handicap is keep.idNum - A unique integer that identifies each ����golfer.scores an Array - stores Score object that ����represent the golfer's scores. Set the size of the array to 10 but usenumOfScores instance variable(below) to track ��how many Score object are actually in the array. ((NOTE: MUST USE AN ARRAY, CANNOT USE ANY OTHER TYPE OF JAVA COLLECTION OBJECT)numOfScores an int representing the number �����

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture