Question 1

Write an application that can hold eight integers in an array. Display the integers from first to last, and then display the integers from last to first. Save the file as EightInts.java.

Question 8

Write an application in which the user can enter a date using digits and slashes (for example, "6/24/2014"), and receive output that displays the date with the month shown as a word (such as "June 24, 2014". Allow for the fact that the user might or might not precede a month or day number with a zero (for example, the user might type "6/24/2014" or "6/24/2014"). Do not allow the user to enter an invalid date, defined as one for which the month is less than 1 or more than 12, or one for which the day number is less than 1 or greater than the number of days in the specified month. Also display the date's ordinal position in the year; for example, 6/24/2014 is the 175th day of the year. In this application, use your knowledge of arrays to store the month names, as well as values for the number of days in each month so that you can calculate the number of days that have passed. Save the application as ConvertDate.java.

Use the GregorianCalendar class to determine the date's ordinal position in the year.

Question 10

Write an application containing three parallel arrays that hold 10 elements each. The first array holds four-digit student ID numbers, the second holds first names, and the third holds the students' grade point averages. Use dialog boxes to accept a student ID number and display the student's first name and grade point average. If a match is not found, display an error message that includes the invalid ID number and allow the user to search for a new ID number. Save the file as StudentIDArray.java.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.