[Solved] JAC444 Assignment 6-Functional Programming and Lambda Expressions

$25

File Name: JAC444_Assignment_6-Functional_Programming_and_Lambda_Expressions.zip
File Size: 612.3 KB

SKU: [Solved] JAC444 Assignment 6-Functional Programming and Lambda Expressions Category: Tag:
5/5 - (1 vote)

This assignment lets you practice basic Functional Programming and Lambda Expressions in Java.

In this assignment, you will be adding some code to the workshop 2 (shapes) as follows:

Task 4: Define a functional interface to calculate the area of a shape. Create an object of that interface in each of the Circle, Square, Rectangle classes, using lambda expressions.

Print all the shapes and their perimeters polymorphically, as you did in task 1 (dont forget that you are using just one Shape array) but in cases that the shape being printed is an object of these classes (i.e. Circle, Square, Rectangle), print their areas (using the above mentioned objects you created) as well.

Marking Criteria and Tasks:

Please note that you should:

a- have appropriate indentation. b- have proper file structures and modularization. c- follow Java naming conventions. d- document all the classes properly. e- not have debug/useless code and/or file(s) left in assignment.

f- have good intra and/or inter class designs.

in your code!

  • Task: Developing and running the desired solution: (you should submit your source code just individual .java files, and screenshots which demonstrate the way your code runs): 5 marks.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] JAC444 Assignment 6-Functional Programming and Lambda Expressions
$25