Complete assignment 13.1 on Page 529 (20160229_173048.jpg) using Inner Classes. This means that all the classes created for this program will be created inside a single Outer class.
This is an example of how to write spaghetti code. Something we do not want to do in real world.
Submitting your work (15 Points)
Before submitting your work, please reflect on following points:
- No errors, program always works correctly and meets the specification(s) (2 points).
- The code could be reused as a whole or each routine could be reused (2 points).
- Concepts of Inner classes is applied. (4 points)
- Need to follow Java coding conventions (2 points).
- Code Readability (as suggested in class) (2 points).
- Adequately tested (unique test cases, covering boundary conditions) (2 points).
- Class diagram is provided (UML usage is not required) (1 points).
mstrong.edu/liang/intro10e quiz html,
wer me qu
PROGRAMMING EXERCISES
actions 13.2-13.3
13.7 (Triangle class) Design a new Triangle class that extends the abstract
Myprogramming
GeometricObject class. Draw the UML diagram for the classes Triangle
and GeometricObject and then implement the Triangle class. Write a test
program that prompts the user to enter three sides of the triangle, a color, and a
Boolean value to indicate whether the triangle is filled. The program should create
a Triangle object with these sides and set the color and filled properties using
the input. The program should display the area, perimeter, color, and true or false
to indicate whether it is filled or not.
*13.2 (Shuffle ArrayList) Write the following method that shuffles an ArrayList of
public static void shuffle(ArrayList list)
numbers:
13.3 (Sort ArrayList) Write the following method that sorts an ArrayList of numbers.
public static void sort(ArrayList list)