Question: Assignment 0 1 * * Please give proper user prompt Write a Java code from the above UML diagram where the display function displays all

Assignment 01
**Please give proper user prompt
Write a Java code from the above UML diagram where the display function displays all the information of
the class. The name attribute contains the name of the book and the year is the year of publishing the
book. In the 'calculate' method, you need to create a 2D array and show the sum of the diagonal. For
example :
If the array is: {[1,3,4],[5,0,6],[9,7,4]}
The result will be 5=(1+0+4).
Show two objects of the class (at least one object should be user input).
Create another class "Matrix" similar to the Mathbooks class but you need to modify the 'calculate "
method so that it can create two 2D arrays and the multiplication of them and show the resulting matrix
after multiplication. Both 2D arrays should be user input. You need to construct one Matrix object and
show the resulting matrix.
Ask the user to enter a single integer value(n) and write a Java method "summation" that
returns the sum of every multiple of 3 from 1 up to the provided integer n. If the user inputs 17 then
the sum of 3+6+9+12+15 is 45.45 will be the output.
Assignment 0 1 * * Please give proper user prompt

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 Finance Questions!