Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a Java program to obtain transpose of a 4 x 4 matrix. The Transpose of the matrix is obtained by exchanging the elements of each row. With the elements of the corresponding column. using Object Class and Driver Class


Designing module for managing collection of product type data

This solution code should contain definition for product model along with it’s properties. The program should also provide impelementations of CRUD operations for the Product model

This exercise contains project for solution code for Product entity and Product Repository classes

  1. Product model class
  • This class should provide common properties for the Product model.
  • More on properties is provided in boilerplate code
  1. ProductRepository class
  • The primary responsibility of this class to manage CRUD operations for collection of Products
  • The boilerplate contains outline of methods for different CRUD operatoins required to be managed for products
  1. Product Storage
  • The repository class should declare field as a collection object for allowing only the Product items to be added to the collection
  • Choose the collection type basis the fact that product collection should not allow any other type of items.

1.      Suppose end system A wants to send a large file to end system B. At a very high level, describe how end system A creates packets from the file. When one of these packets arrives to a router, what information in the packet does the router use to determine the link onto which the packet is forwarded? Why is packet switching in the Internet analogous to driving from one city to another and asking directions along the way?


Add each element in origList with the corresponding value in offsetAmount. Print each sum followed by a space. Ex: If origList = {40, 50, 60, 70} and offsetAmount = {5, 7, 3, 0}, print: 

45 57 63 70




Sum of the series



Write a program to find the sum



S of the series where S = x - x^3 + x^5 + ....... upto N terms.



Sample Input 1


2


5


Sample Output 1


410



to solve this approch


if i value is even:


result = summation of the term value and then added to the result



else :


result = Subtraction of the term value and then added to the result

2. Design a class Account that has the following member: Data Fields: account_id(int type), balance(double type)).


Member Functions-> withdraw(),deposit(),getmonthly_interest() and parameterize constructor to initialize data members. Use this class to print the balance. Use the withdraw () to withdraw money less than Rs 5000 and then deposit more than or equal 1500 using deposit function. (6)


Multiple of 3:


(1) Input: 6 Output: 3

1 9

2 6

3

5

9

6


(2) Input: 4 Output: 3

1 6

3

6

8


Multiple of 5 :


(1) Input: 6 Output: 1

1 2

2 3

3

5

9

6


(2) Input: 5 Output: 1

1 2

2 3

3 4

4

5


First Prime Number:


(1) Input: 5 Output: 3

1

10

4

3

2


(2) Input: 4 Output: 2

2

3

5

7


Composite Numbers in the range:


(1) Input: 2 Output: 4

9 6

8

9


(2) Input: 1 Output: 4

4


LATEST TUTORIALS
APPROVED BY CLIENTS