How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Michael Hannigan Your Own Question

Michael Hannigan
Michael Hannigan, Consultant
Category: Programming
Satisfied Customers: 11166
Experience:  25+ Years Experience in Field. Multi Platform Developer.
23511658
Type Your Programming Question Here...
Michael Hannigan is online now
A new question is answered every 9 seconds

Part I Create an interface ADT. The ADT interface should

Customer Question

Part I
Create an interface for the ADT.  The ADT interface should contain the following operations:
 An operation that increases the current value of the ADT by multiplying it by an argument
integer
 An operation that determines if the current value of the ADT is divisible by 3.
 An operation that gets the current value of the ADT and returns it as a String.
Your interface should be created using the following template.    The constructor does not have to
specified until the interface is implemented.
public interface LargeIntegerInterface {
// abstract methods for multiply and print
abstract public void multiply(int x);
abstract public boolean isThree();
abstract String getString();
}
Part II
Write a Java program that implements the ADT defined in Part I.  The implementation should use an
array to store the value inside the ADT.    The implementation should be called CalcArray.    The
implementation should work with the provided Main class.  Note that this implementation must have
a constructor that creates and initializes the Large Integer to an argument value.
Part III
Write a Java program that implements the ADT defined in Part I.  The implementation should use an
String to store the value inside the ADT.    The implementation should be called CalcString.    The
implementation should work with the provided Main class.  Again, this implementation must have a
constructor that creates and initializes the Large Integer to an argument value.
Grading
The distribution of points will be as follows
Array Implementation        30 points
String Implementation       30 points
Interface/Design/Documentation     20 points
Submission
Submit your assignment through Blackboard.  If your assignment contains multiple files, zip them into
a single folder before submitting.
Notes
Points can be deducted from your assignment based on the quality of its presentation.  Handwritten
assignments will not be accepted.
Main Class
import java.util.*;
public class HW2Main {
public static void main (String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
CalcArray c1 = new CalcArray(x);
if (c1.isThree()) {
System.out.println("Is divisible by 3");
}
else {
System.out.println("Is not divisible by 3");
}
for (int i=x; i>1; i--) {
c1.multiply(i);
}
System.out.println("Factorial is " + c1.getString());
}
x++;
CalcString c2 = new CalcString(x);
if (c2.isThree()) {
System.out.println("Is divisible by 3");
}
else {
System.out.println("Is not divisible by 3");
}
for (int i=x-1; i>1; i--) {
c2.multiply(i);
}
System.out.println("Factorial is " + c2.getString());
}
}
Submitted: 1 year ago.
Category: Programming
Expert:  ATLPROG replied 1 year ago.

Hello I can help. Can you upload what you got on wikisend.com and post file id here

Customer: replied 1 year ago.
here is the assignment
Customer: replied 1 year ago.
Hello
Expert:  ATLPROG replied 1 year ago.

By when you need this

Customer: replied 1 year ago.
where is the answer
Expert:  ATLPROG replied 1 year ago.

sorry i am out of ideas. i will opt out for others

Expert:  Michael Hannigan replied 1 year ago.

Hello. Do you still need assistance with your question?