Programming Assignment 3
PURPOSE AND REQUIREMENTS:
Your application must contain at least one abstract class, and must perform
proper inheritance according to software design concepts discussed in class.
In other words, a class must contain only the proper and necessary methods and
instance variable.
Recall at the end of chapter 8 (check attached presentation) of the Java How to Program 10/e there was an example GUI/Graphics-based application that draws random lines. Also at the end of chapter 10 of the same book there was an example that shows a my shape
hierarchy (last slide).
In this assignment you are to modify the program in chapter 8 to draw not only
lines but different shapes randomly inside the panel. These shapes will be
implemented according to inheritance hierarchy in figure 10.18 in the last slide
of chapter 10. Therefore the panel must have different lines with different
colors and lengths, different rectangles with different colors and sizes, and
different ovals with different colors and sizes, all generated randomly similar
to the example in chapter 8.
In addition to shape color, the rectangle and the oval will also have a fill
color, so you can fill them with different colors generated also randomly.
Once the shapes are generated and drawn on the screen, your program must properly
print on the console a list of the colors used in the drawing in the format <R,G,B>.
Once this list of colors comes out to the screen, you need to follow that with printing
the color ranges for each RGB value used, similar to the
following example:
Example:
<20,214,145>
<79, 222, 123>
. . .
<198,43,100>
The Red Range was: 20 - 242
The Green Range was: 120 - 234
The Blue Range was: 89 - 245
You may not use any Java pre-built methods to generate the above information, you must
develop its you on your own.
Note: Include an Interface called “Printable” which allows you when drawing the specific
shape to display on the console (character based) information about each
shape.
The following information will be required to display about each shape:
1. For a line, (x1, y1, x2, y2, color, length, and the slope)
2. For a rectangle (x1, y1,
x2, y2, color, fill color, area, and perimeter)
3. For an oval (x1, y1, x2, y2, color, fill color area, and perimeter)
Your program must display the above information
about each shape drawn in the panel,
and must display it sorted according to the length/area. So yes, you will compare
the area of a rectangle/oval to the length of a
line. You can use your favorite
sorting algorithm to do that. Also, you must label each information correctly to
indicate if it is a line, rectangle or an oval.
IMPORTANT NOTE:
^^^^^^^^^^^^^^^
Proper design of classes is going to be looked for and graded, so you must design your
code properly and be able to explain your design.
Need 2 copies with different logic. This is a very small project, half of the code is already in the presentation. Need the code in 2 days, only interested one's bid the project.
Hello
I'm interesting your project very well
I'm a Good Java, Math, Algorithm expert.
I understand your req exactly.
I m quite well experienced in these assignment jobs.
Let's go ahead with me
I want to service for you continously.
Thanks
Dear Sir, I am TOP RANKED Java programmer with 10+ years of experience. Done 700+ projects on this site. I am very interested in your project. Please award me this project.
Hello
My name is Ahmed, i passed freelancer java exam with top 10% rated
plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 3+ years experience.
small overview of feedback on my profile
“professional , the best , if u have any problem in java , i would recommend Ahmed”
"Highly recommended , smart , on time ,high experience and he did a difficult assignment
that others couldn't finish . will hire again"
“Awesome job as usual highly recommended very dedicated and satisfying A+++
Thank you for this great job”
looking forward to work with you
Regards
We are expert in Java and J2EE technologies and have completed numerous projects and assignments. Our skills and some of our completed projects can be seen on our profile page
https://www.freelancer.com/u/Javagurupk.html.
Let us to complete this project for you.
We are Egyptian team, and i am sure that you will get our work is a great as you expect, all of team have a diploma in javaSE, JavaEE, JavaFX using many technologies like Struts1, Struts2, Hibernate, JPA, Spring, Spring MVC, Spring Security, EJB, JSF, Primefaces, Webservices and all of us familier with XML, Javascript, AJAX, Web Services .. etc
Also we have members who have a diploma in Andriod, JavaME, IOS, Blackberry applications.
We are a team of programmers who have many skills in programming generally and in java specifically. we worked on a projects for a big companies like vodafone, Etisalat and many banks. We have knowledge about many fields of business. I can assure that you'll get your work done in an efficient way.
Hi Sir,
I am expert developer. I can do your project easily. Contact me so I can start working soon. Waiting for your quick response.
Regards
Qasim Saleem
Hit me up on chat if you would be interested to talk some more about the project and terms. I have a lot of java experience so i believe i could do this quickly and efficiently.