Write down specification for the adt as a java interface

Assignment Help Computer Engineering
Reference no: EM133099

Question

Consider an ADT called square matrix. (The Matrix can be represented by a 2-dimensional array of integers with n rows and n columns)

a) write down specification for the ADT as a java interface. Include following operations. (Parameters are already listed for the first two operations; for remaining operation you have to determine which parameters to use yourself. As part of the exercise)-

Make Empty (n), which sets the first n rows and columns to zero.

Store Values (I. j. value), which stores values into the positions at row column j

Add, which adds two matrices together

Subtract, Which Subtracts one matrix from another

Copy, Which copies one matrix from another

b) generate a java class that implements the interface; suppose a maximum size 50 rows and columns.

c) Generate a small application that uses class.

Reference no: EM133099

Questions Cloud

What is essential address field width : What is essential address field width
Write down an application that reads 3 integers : Write down an application that reads 3 integers
Describe the term tco : Describe the term TCO
Write a java program on a good doctor : Write a java program on A good Doctor
Write down specification for the adt as a java interface : Write down specification for the ADT as a java interface
Produce a decision table : Produce a decision table
What is role of risk assessment : What is role of risk assessment
Explain contents of an initially empty avl tree : Explain contents of an initially empty AVL tree
Write a program that reads n positive numbers from keyboard : Write a program that reads N Positive numbers from keyboard

Reviews

Write a Review

Computer Engineering Questions & Answers

  What personnel implications are when setting up a wan

What personnel implications are when setting up a wan? You are hired by a firm that has offices in Peru, France, the United States, and Hungary. Your job is to coordinate a team of IT workers to connect all of individual sites into one large WAN.

  Examine the behavior of airfoil

Write HW assignment written in Matlab airfoils have different C mc/4

  How to maintain the list of cd/dvds

How to maintain the list of CD/DVDs.

  Create an xml document containing information

Create an XML document containing information.

  Write program that generates casual number between 1 and 100

Write program that generates casual number between 1 and 100?

  Describe the meaning of storage density

Describe the meaning of storage density

  How to produce a function mult-stream

How to produce a function mult-stream.

  What is bobs private key

What is Bob's private key?

  Write a program that mimics a flop-turn-river of poker game

Write down a program that mimics a flop-turn-river of a poker game. I must have three buttons titled Deal, Shuffle and Start Over.

  Explain networking of cis 505

Explain networking of CIS 505? 1. Network Neutrality 2. Web2.0

  Predicate color and action paint using situation calculus

Predicate color and action paint using situation calculus

  Plan the decision table with all possibilities

Plan the decision table with all possibilities

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd