An adt called squarematrix

Assignment Help Basic Computer Science
Reference no: EM13669419

Consider an ADT called SquareMatrix. (The matrix can be represented by a two-dimensional array of integers with n rows and n columns.)
a. Write the specification for the ADT as a Java interface. Include the following operations (parameters are already listed for the first two operations; for the remaining operations you must determine which parameters to use yourself, as part ofthe exercise):
· MakeEmpty(n) , which sets the first n rows and columns to zero
· StoreValue(i, j, value) , which stores value into the position at row i, column j
· Add, which adds two matrices together
· Subtract, which subtracts one matrix from another
· Copy, which copies one matrix into another
b. Create a Java class that implements the interface. Assume a maximum size of 50 rows and columns.
c. Create a small application that uses the class.

Reference no: EM13669419

Questions Cloud

Basic business skills play a role in your professional life : How will basic business skills play a role in your professional life?
Linear programming case study : Explain what the results mean - write a paragraph addressing the part of the problem pertaining to sensitivity analysis and shadow price.
The ceo throws a billion dollar party : The CEO throws a billion dollar party
Compute the force acting on the electron : In the Bohr model of the hydrogen atom, the speed of the electron is approximately 2.20 x 106 m/s. Compute the force acting on the electron as it revolves in a circular orbit of radius 5.30 x 10-11 meter
An adt called squarematrix : An ADT called SquareMatrix
Calculate what is his power output : A 685 N Marine in basic training climbs a 9.00 meter vertical rope at a constant speed in 6.00 second. Determine what is his power output
Find how does this power compare with the motor power : A 750 kilogram elevator starts from rest. It moves upward for 3.50 second with constant acceleration until it reaches its cruising speed, 1.75 m/s. Find how does this power compare with the motor power when the elevator moves at its cruising speed
Determine what the average power delivered to the train : The electric motor of a model train accelerates the train from rest to 0.665 m/s in 25.0 milliseconds. Determine the average power delivered to the train during the acceleration
Autocratic leader versus a democratic leader : What are the traits of an autocratic leader versus a democratic leader, and is one type of leadership better than the other? Please use the CSU Online Library to search for those leadership styles in order to explain your answer.

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Creating modular program to enter monthly costs

Create a modular program which asks the user to enter monthly costs for expenses given incurred from operating his or her automobile.

  Compute the overall npv if tangible benefits are given

Tangible benefits of $190,000 per year. If the cost of capital is 12 percent, compute the overall NPV? Overall ROI? Break-even.

  Accept one input.

Write a function called "problem3" that accept ONE input. This single input will be formatted as follows: Row 1: X coordinates Row 2: Y coordinates Your function should then shift the shape

  Define a job scheduling strategy that will meet business

Define a job scheduling strategy that will meet business requirement of reporting availability by 6am CST for the following cubes? Show the job scheduling dependencies in a pictorial form so that it is easy to understand.

  Algorithms for finding possible winers-analysing complexity

Create algorithms for finding the possible winers and the Condorcet winner with analysing its complexity.

  The evolution of e-marketing tools

The Evolution of E-Marketing Tools

  Evaluate the following boolean expression

Assume that a=5, b=2, and c= 3. What problems do you encounter when attempting to evaluate the following Boolean expression?

  Explain the difference between an object reference in java

Explain the difference between an object reference in Java and an object. Use an example to illustrate your answer.

  Calculate a checksum that is the modulo 8 sum

How do you calculate a checksum that is the modulo 8 sum of all the bytes in the following packet C4 04 03?

  Fork function

Create a C program that takes an integer argument from the command line and outputs sum of all digits of the integer. For example, the result of the invocation sum of digits 12345 should be fifteen.

  Deliver software to a schedule

You are asked by your manager to deliver software to a schedule that you know can only be met by asking your project team to work unpaid overtime.

  Write a c++ program to evaluate postfix expressions

Write a C++ program to evaluate postfix expressions. Your program should take postfix expression as an input, process it with the help of stack and display the result after performing required calculations.

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