Array:Extra credit
In this extra credit assignment, you're going to create an array of desired birthday gifts.
Constant:
Because we can't have everything we want, create a constant MAX_GIFTS that contains the maximum number of gifts in your gift array.
The Array
Create an array gifts. This array is of MAX_GIFT size and will hold strings representing the name of the desired gift.
The input Loop. Ask the user how many gifts s/he wants (<= MAX_GIFTS). Create a loop that asks the user for Gift #?. The user enters the gift name. Put this gift into the array.
The Output Loop. Print the user's gift number and the gift.
If you choose to do this extra credit assignment, the
url and the java code as an attachment must be email to be at least
two hours before the scheduled final exam time.