Answered step by step
Verified Expert Solution
Question
1 Approved Answer
******************using Java*************** REQUIREMENTS You will submit a single file Assignment5.zip through the Programming Assignment 5 Submission link on Canvas. This zipped file will contain 6
******************using Java***************
REQUIREMENTS You will submit a single file "Assignment5.zip" through the Programming Assignment 5 Submission link on Canvas. This zipped file will contain 6 classes (files) that make up your solution to this assignment. Also, you will create your own test input file "in5.txt" to use for your own testing. Do NOT include in5.txt in the zipped file DETAILS You will create 3 shape classes (Circle, Rectangle, Triangle) that all inherit from a single abstract class called AbstractShape which implements Shape (also created by you). You are also responsible for creating the driver class "Assignment5.java" (program that tests your classes and described on page 3) which does the following reads input data from a file instantiates various objects of the three shapes based on the input data stores each in a LinkedList outputs this list to an output file sorts a "copy" of this LinkedList of objects outputs the sorted version of the list to the output file outputs the original list to the output file This driver program also needs to "ignore" errors in the input file that breach the specified input format as described in the AssignmentSiava details (see page 3 1. Shape.java This is an interface that has 2 abstract methods, and passes the responsibility of implementing the compareTo method to the class that implements Shape (you may note, normally Comparable is "implemented" by a class However, an interface cannot implement because interfaces can only contain abstract methods. That said, an interface can only extend other interfaces and the responsibility of actually "implementing" the abstradt method(s) of the super class interface is passed on to the sub-classes) public interface Shape extends ComparableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started