Answer all ArrayList where DatumDash inherits from…

Question Answered step-by-step Answer all ArrayList where DatumDash inherits from… Answer allArrayList whereDatumDash inherits from Datum.(i) Give code for a modified version using subtype polymorphism, justifyingany changes and highlighting any unresolvable difficulties. (ii) Similarly, what changes, if any, would be required if the original fastFilterinstead used Java classic [] arrays? Again justify your answer. (iii) Give a definition of fastFilterInner which uses generic polymorphism,along with a subtype-polymorphic wrapper whose signature matches thatused in Part (a)(i). complete consider moving the use of .key.] (b) class Myst { // A Mystery?private Supplier act; // Java’s name for void->Intprivate Myst(Supplier a) { act = a; }static Myst R(Int x) { return new Myst(()->x); }Myst B(Function f) { return f.apply(act.get()); }static Myst primIn = new Myst( () -> SystemIO.readInt()) );static Myst primOut(Int x) {return new Myst(() -> { SystemIO.println(x); return x;} );}static void exec(Myst x) { x.act.get(); }    }The class Myst is coded in a language resembling Java. What concept does itmodel and what does the code below conceptually do if executed in its scope?Myst one = primIn.B(x -> primOut(x+1));Myst two = R(2).B(y -> primIn.B(x -> primOut(x+y)));Myst three = one.B(x -> two).B(x -> one);exec(three);  (a) A one megabyte memory bank with 64-bit data bus is to be constructed fromSRAM chips of individual capacity 32K×8. Sketch out a design for the bankshowing clearly how the SRAM chips are arranged. [4 marks](b) Describe, in 30-40 words each, three ways in which an underlying theory canhelp to improve the quality of software systems. [4 marks](c) Acoustic couplers used to connect modems to telephone handsets present anaudio interface from the telephone network to computer equipment. Name oneadvantage and one disadvantage of using such an interface. [4 marks](d) Show that for any two regular expressions r and s, the regular expressionsr(sr)?and (rs)?r determine the same regular language. Predictive text entry systems are familiar on touch screens and mobile phones. Thisquestion asks you to consider how the same principles might be used in a programmingeditor for creating Java code.(a) Explain using Bayes’ Theorem how such an editor might update its expectationabout which identifier will appear next, as the programmer is typing a line ofcode. Your answer should include a short extract of Java code preceding this line,in order to illustrate the context in which the expectation is being calculated Chapter-Classes and InheritanceFill the parts in the code marked // Your code starts here // Your code ends hereSo that the main method produces the output A B CDo not modify anything from the original script including the comments.Question-import csvimport pandas as pdmovies = [“Parasite”, “Green Book”, “The Shape of Water”, “Moonlight”, “Spotlight”, “Birdman”,”12 Years a Slave”, “Argo”, “The Artist”, “The King’s Speech”, “The Hurt Locker”, “Slumdog Millionaire”,”No Country for Old Men”, “The Departed”, “Crash”, “Million Dollar Baby”, “The Lord of the Rings: The Return of the King”,”Chicago”, “A Beautiful Mind”, “Gladiator”, “American Beauty”, “Shakespeare in Love”, “Titanic”,”The English Patient”, “Braveheart”, “Forrest Gump”, “Schindler’s List”, “Unforgiven”, “The Silence of the Lambs”,”Dances With Wolves”, “Driving Miss Daisy”]# Note: For all these questions you need to take the values out of the list.# You can’t just assign a string to the variable# Reverse the movies list so that instead of from 2020 to 1990 it goes from 1990 to 2020# Your code starts after this linemovies.reverse()# Your code ends before this line# Set the variable winner_1990 to the best picture winner in 1990# Your code starts after this linewinner_1990 = movies[0]# Your code ends before this line# Set the variable winner_2000 to the best picture winner in 2000# Your code starts after this linewinner_2000 = movies[10]# Your code ends before this line# Set the variable winners_2010s to the best picture winners from 2010 to 2019# Your code starts after this linewinners_2010s = movies[20:29]# Your code ends before this line# Replace the winner in 1999 with the movie ‘The Thin Red Line’# Your code starts after this linemovies[9] = ‘The Thin Red Line’# Your code ends before this line# Assign the count of all the movies to the variable movie_count# Your code starts after this linemovie_count = movies.len()# Your code ends before this line# Using the range function create a variable year that contains a list of numbers from 1990 to 2020# Your code starts after this lineyears = range(0,30)# Your code ends before this lineprint(“Winner 1990: ” + str(winner_1990))print(“Winner 2000: ” + str(winner_2000))print(“Winners 2010s: ” + str(winners_2010s))print(“New Winner 1999: ” + str(movies[9]))print(“Count of movies: ” + str(movie_count))print(“Years: ” + str(list(years))) Image transcription textQuestion 1 – Conditional Probability_(4*25points) An IT company has three differentbranches, and 70% of the empl… Show more… Show moreImage transcription textD Question 12 What are the dominant strategies inthe following game? Horsey Derp MathematicsStatistics Actuarial Computer Science S… Show more… Show more  Engineering & Technology Computer Science COMPUER SC INAFU6004 Share QuestionEmailCopy link Comments (0)