Please help! I'm really lost right now!!!!
2. Assume that an arrays has been defined:
int par = new int;
int strokes = new int;
Assume that every compartment of the arrays contains an appropriate integer value representing the par value and the number of strokes made by a golfer on each hole of an eighteen hole golf course.
a. Write a code segment that calculates and displays the number of holes upon which the golfer made an eagle. To make an eagle, the number of strokes made by the golfer must be two fewer than the par value for the hole.
b. Write a code segment to display the hole numbers for all holes on which the golfer missed par. To miss par, the number of strokes on the hole must be greater than the par value for the hole.
3. Write a code segment that prompts the user to enter a sentence and then displays all of the words in the sentence which have an odd number of letters in them. You may assume that the user will input a string consisting of only English language words each separated by exactly one blank space and that the only punctuation symbol will be a period at the end of the sentence.