Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do all the questions! Q5 Streams 21 Points All answers to this question must start with a way to source a stream, followed by

image text in transcribed

image text in transcribed

Please do all the questions!

Q5 Streams 21 Points All answers to this question must start with a way to source a stream, followed by a single sequence of ONLY stream operations including collect and any operation on For each answer, the result MUST be assigned to a named and typed variable: e.g. Integer res = sequence of stream operations ... Here res (name) is the result variable of Integer (type) You don't need to write import statements for any of the classes and interfaces you use. For this question, you are given an enumeration and a class as follows: public enum Language \{JAVA, PYTHON, C, RUBY, SCALA, PHP\} public class Coder \{ ... public String getName (){} public String getCity (){} public int getYear (){} public int getLOC (){}// LOC Lines Of Code public Language getLanguage (){} \} Assume a pre-populated list of coders, . From this list, extract the data required in each of the following questions. Q5.1 7 Points Gather into a list the names of all coders for year 2020 , sorted from most prolific (greatest LOC) to least Enter your answer here Q5.2 8 Points For each language, which cities had coders that wrote at least 50,000 lines of code in that language

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

I receive the training I need to do my job well.

Answered: 1 week ago