Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

I need the five methods

public class Ex1Program {
public void start() {

// Step 1. Declare and construct an array of 19 Movie objects (call the array films)


fillMoviesArray(films);
printMoviesArray(films);

Movie mostRecentMovie = getMostRecentMovie(films);
Movie longestMovie = getLongestMovie(films);

printResults(mostRecentMovie, longestMovie);
System.out.println();

printDirector("Searching for Sugar Man", films);
printDirector("Liberal Arts", films);
printDirector("The Intouchables", films);

}

private void fillMoviesArray(Movie[] films) {
films[17] = new Movie("The Intouchables",2011,112,"Olivier Nakache and Eric Toledano");
films[6] = new Movie("From Russia With Love",1963,110,"Terence Young");
films[14] = new Movie("The Long Voyage Home",1940,105,"John Ford");
films[9] = new Movie("Easy Rider",1969,94,"Dennis Hopper");
films[3] = new Movie("Dark Shadows",2012,113,"Tim Burton");
films[10] = new Movie("Walk the Line",2005,136,"James Mangold");
films[5] = new Movie("The Help",2011,137,"Tate Taylor");
films[0] = new Movie("Meet the Parents",2000,107,"Jay Roach");
films[7] = new Movie("The King''s Speech",2011,118,"Tom Hooper");
films[8] = new Movie("Charlie and the Chocolate Factory",2005,115,"Tim Burton");
films[2] = new Movie("Alice In Wonderland",2009,109,"Tim Burton");
films[4] = new Movie("The Iron Lady",2011,105,"Phylliday Lloyd");
films[11] = new Movie("Kaikohe Demolition",2004,52,"Florian Habicht");
films[12] = new Movie("Brokeback Mountain",2005,134,"Ang Lee");
films[13] = new Movie("Gladiator",2000,154,"Ridley Scott");
films[1] = new Movie("The Parent Trap",1961,129,"David Swift");
films[15] = new Movie("Happy-Go-Lucky",2008,118,"Mike Leigh");
films[16] = new Movie("The Big Wedding",2013,89,"Justin Zackham");
films[18] = new Movie("Searching for Sugar Man",2012,86,"Malik Bendjelloul");
}


private void printMoviesArray(Movie[] films) {
System.out.println("Movie Collection");
System.out.println("================");
// Step 2. Complete the printMoviesArray() method

}


private Movie getMostRecentMovie(Movie[] films) {
// Step 3. Complete the getMostRecentMovie() method.

}

private Movie getLongestMovie(Movie[] movies) {
// Step 4. Complete the getLongest() method.

}

private void printResults(Movie mostRecent, Movie longest) {
System.out.println();
System.out.println("The most recent movie is: " + mostRecent.toString());
System.out.println("The longest movie is: " + longest.toString());
}

private void printDirector(String movieName, Movie[] movies) {
// Step 5. Complete the printDirector() method

}

}

Java, Programming

  • Category:- Java
  • Reference No.:- M9546839

Have any Question?


Related Questions in Java

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As