![]() |
|
[Java] 2D Shapes assignment - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] 2D Shapes assignment (/showthread.php?tid=5802950) |
2D Shapes assignment - blank. - Feb 21, 2018 Basically have to do this assignment for class and need some help. Program a class for each of the following 2D shapes: Circle Triangle Rectangle Trapezoid Each 2D shape class must have the following:
Code Rectangle(double length)
Code private void calculatePerimeter()
Code private void calculateArea()
Code public double getLength()
Code public void setRectangle(double length)
Code public void print()Your Main class should have the following:
RE: 2D Shapes assignment - Untold - Feb 21, 2018 You never specified as to what you need help with. RE: 2D Shapes assignment - GenericSkid - Feb 22, 2018 (Feb 21, 2018 10:37 PM)Letum Wrote: You never specified as to what you need help with. He may want a pseudo-code outline of one of the shapes to compare to. |