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 are pros and cons of society''s increasing reliance data

What are pros and cons of society's increasing reliance data

  How to develop a problem definition

How to develop a problem definition

  What is mno

What is MNO.

  Application to computer science

Find the matrices that represent the relations.

  Write an essay on wifi performance

Write an essay on WiFi performance

  How to utilize data mining tools and techniques

How to utilize data mining tools and techniques

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

  What are the reasons of project failure

Make sure to contain how and why project was initiated, what setting up was done, how plan went wrong and what was done to solve the trouble. What are the reasons of project failure

  How to create a database for music

How to create a database for music? Other entities will be Artist/Group - Attributes will be Name, Year Founded, Origin, Tones and Biography, Track - Attributes will be Number and User's Recommendation and finally Song - Attributes will be Name, ..

  Describes a function named insidecircle

Describes a function named insideCircle

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  How can sophie use applocker

How can Sophie use AppLocker.

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