Question: I need help with this problem. please read the direction. PLEASE DO all the eequirement in the directions. i attached what i have so far.


Write a Java program to manage data for Best Actor winners for the years 1970 - 2019 (that's 50 years). You WILL NOT use a data class or any other data structure for storing the data - 4 parallel arrays! You program will: store the data in 4 parallel arrays, one for the names of the actors, one for the year of the award, one for the age of the actor when the award was won and one for the name of the movie for which the award was won. Look at the data file to review the order of the data. display the data in table format, something like this: Year Movie Best Actor Age when award received . . search the arrays by movie title - request the title of the movie (or portion of) and display all data related to the movies that contain that portion (include best actor's name, age and the year of the movie) search the arrays by actor name - request the name of an actor (or portion of) and display all data related to the actor's name that contain that portion (include the title of the movie, the year and the age of the actor) search the arrays by year range - request a low year and a high year from your user, display all data related to movies and actors within that date range (include all data: the movie title, the year, the best actor and the age of the actor) determine and display the oldest and youngest best actor award winners (age when award was won). If there are multiple of the same age display one. After those methods are written and are working well, provide a menu for your user to select which they would like to see, which query they would like to run against the data - I recommend doing this with the JOptionPane buttons as shown in class, but you certainly can do this in S.o.pl statements. When creating the menu, allow your program to repeat until the user selects a "quit" or "exit" option The data for this program is here 6 8 . 1 eName = 1 2. 3 import java.io.*; 4 import javax.swing.JOptionPane; 5 public class BestActors{ public static void main(String[] args) throws IOException { 7 int[] year=new int[50]; String [] name = new String[50]; int (lage = new int[50]; 10 String[] movieName = new String[50]; 11 12 File infile = new File("academy AwardwinningActors-2.txt"); 13 if(linfile.exists()){ 14 System.out.println("error"); 15 System.exit(0); 16 } 17 Scanner scan = new Scanner(infile); 18 for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
