Question: 188-INTRO-COMPUTERS-PROGRAMMING-88208-002/ Problem 5-Write a program Submit a program called: Movie.java Johan wants to create a program that allows him to type in 3 movies. All
188-INTRO-COMPUTERS-PROGRAMMING-88208-002/ Problem 5-Write a program Submit a program called: Movie.java Johan wants to create a program that allows him to type in 3 movies. All movies entered should start with the letter m (case shouldn't matter). If the user enters a movie that does not start with the letter m, the program should let the user know that it does not start with the letter m and reprompt for a movie starting with m. Once all 3 movies are entered, all movies with titles that have an even length less than 5 should be printed to screen (see sample run). 1. Define the following methods: /*This method takes the numbek of movies (given in this problem as 3) and returns a String array filled with the movie information* public static String [Il enterMovies(int numofMovies) /"This method takes the array of movie info and the max length a movie should be in order to print it out (given in this problem as 5)*/ public static void movieLength(String (I s, int n) 2. Using the methods you created, create the program. Feel free to make any helper methods. Sample Run: ***Enter a movie that starts with m: movie1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
