Question: Read the given program written in Java language below. Understand what the program performed. public class Weekend { public static void main(String[] args) { Film

 Read the given program written in Java language below. Understand whatthe program performed. public class Weekend { public static void main(String[] args){ Film Watch[] = new Film[4]; Watch [0] new Film ("Shrek", 133);

Read the given program written in Java language below. Understand what the program performed. public class Weekend { public static void main(String[] args) { Film Watch[] = new Film[4]; Watch [0] new Film ("Shrek", 133); Watch[1] = new Film ("Up", 117); Watch[2] new Film ("Beauty & The Beast", 93); Watch [3] = new Film ("Enigma", 114); Film Longest = null; Film shortest = null; int longtime = 0; int shorttime = 0; for (int i=0; i longtime) { longtime=mins; Longest = Watch[i]; } } } System.out.println("Longest film is " + Longest.getcalled() + + longtime + " minutes"); System.out.println("Shortest film is " + Shortest.getcalled() + shorttime + " minutes"); 11 at 11 at } mo Screen Recorder M Programming Languages CS360 Wednesday, 03 February, 2021 public class Film { String Name; int min; public Film (String on, int ch) { Name = 0; min = sh; } public int setminutes() { return min; } public String getealted() { return Name; } } movavi Screen Recorder Next, complete the followings: Next, complete the followings: Task 1: Write a program using C language to solve the same problem as given above. You may use any functionalities available in the language. (Paste the screenshot of your program here) Answer: Task 2: Compare the structure of your C program with the given program above. Write a short comparison report that shows the differences and similarities between the 2 languages. Answer: movgvi Screen Recorder

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!