Final answer:
The student must create a program to store, display, and sort movie titles using arrays, demonstrating skills such as declaring arrays, accessing elements, looping, and using Array class methods.
Step-by-step explanation:
The assignment is focused on demonstrating one's understanding of arrays in programming. The task at hand is to create a program that performs a series of actions with an array which involves storing and sorting movie titles.
- Declare an array and assign values to its elements.
- Access and loop through array elements using a loop structure.
- Utilize Array class methods to rearrange the movie titles in ascending order.
- Prompt the user to enter the number of movie titles they would like to input, ensuring the value is greater than zero.
- Store user-provided movie titles in the array.
- Display the unsorted list of movie titles, each on a separate line.
- Sort the array and then display the sorted list of movie titles back to the user.
The successful program will showcase competency in using arrays to manage a collection of strings and output them before and after applying sorting mechanisms.