Java Assignment for class

Description

The goal is to create a project that would let a user compute area and perimeter of a polygon. Restrict

the type of polygon inputs to Triangle, Quadrilateral, Pentagon, Hexagon, and Octagon only. Your

program must implement classes IsocelesTriangle, EquilateralTriangle, Rectangle, and Square, which

have the appropriate inheritance relationships. Use abstract classes, interfaces, and exception handling

where appropriate.

For pentagon, hexagon, and octagon assume that the polygon is regular i.e. all the sides are of same

length. For these the input must consist of the type of polygon and length of side (example: pentagon

and 7 where type is pentagon and 7 is length of each side of a pentagon). Use the following formulae’s

to compute the area of a regular polygon where “a” is the length of the side.

Area of regular Octagon:

Area of a regular Hexagon: √

Area of a regular Pentagon:

In case of a triangle or quadrilateral you may or may not have a regular polygon. If a triangle or

quadrilateral is regular then it’s an equilateral triangle or a square respectively. In these cases again your

input will consist of the type of polygon and length of side (example: quadrilateral and 4). If a triangle

or quadrilateral is not regular then the only allowed types must be an rectangle and isosceles triangle. In

each of these cases your inputs will consist of three parts. The first part will be type of polygon and

second and third parts will be the two different possible side. In case of a rectangle let your second input

be length (l) and third input be width (w) and in case of a isosceles triangle let the second input be

base(b) and the third input be height (h). Use the following formulae’s for triangles and quadrilaterals.

Area of an equilateral triangle: √

Area of a square:

Area of an isosceles triangle:

Area of a rectangle:

Sample inputs:

1. pentagon 5

2. octagon 4

3. triangle 3

4. triangle 4 8

Project ID: #4980787

Awarded to:

abhinay18

Hey man I just went through the pdf and i know exactly what your professor wants. I will make all the classes including interface and abstract classes. Just let me know the deadline for the project :)

\$40 USD in 1 day
(7 Reviews)
3.4

20 freelancers are bidding on average \$103 for this job

samitXI

Hi Sir, I am ready to work for you. I have 8 years of experience in C/C++/java. please see some of my works also check my reviews you will get better idea about my skill. I deliver quality work within time frame. Pl More

\$95 USD in 0 days
(141 Reviews)
7.1
dobreiiita

Hi, I am Java expert and can surely help you with this project, Please consider my bid. I will complete this project within next 8-10 hours sooner if you need. Please contact soon so we can start. Thanks

\$80 USD in 2 days
(219 Reviews)
6.8
ranganathp

Can help... I am an Expert... Please check the past projects I have handled and check my reviews for what employers have to say about my work...

\$400 USD in 3 days
(36 Reviews)
6.5
ielkfarna

Dear Sir, I am Java Professional Software Developer, I am Linux Advanced Developer, I am Database Developer and designer. I can Handle your job and do everything extremely Grate. Regards,

\$210 USD in 5 days
(37 Reviews)
5.7
rsonbol

Hello.. I can do it.. I have 12 years experience in java.. I can finish it in a perfect way.... Regards

\$144 USD in 2 days
(18 Reviews)
5.7
pivn

Let expert do this https://www.freelancer.com/u/pivn.html https://www.freelancer.com/u/pivn.html https://www.freelancer.com/u/pivn.html

\$100 USD in 2 days
(85 Reviews)
5.6
urmate

Contact me for an efficient, well commented 100% accurate with Standard Java documentation. Will deliver it within 6 hours. thanks

\$63 USD in 0 days
(60 Reviews)
5.2
hbxfnzwpf

Absoultely finish in time for u, I am very proficient in java. I have 12 years java developing experience. I have worked for 5 years, my work is online game developing, and mainly focus on server side, the language is More

\$55 USD in 1 day
(17 Reviews)
4.4
wjorge

hi ravi i am ready to start. It's a nice project . I have experience on Java Objects programming . I can complete this in 24 hours. Regards

\$50 USD in 0 days
(14 Reviews)
4.3
gkan1234

Hi I have 4+ years experience in Java. I will do this one for you. If you want, I will provide a UI also in Java. Thanks

\$45 USD in 1 day
(13 Reviews)
3.7
acmcoder

Hello Sir, I am ready to solve your assignment with 100% professional & well written code. please award this project to me for best result.

\$80 USD in 3 days
(6 Reviews)
2.9
suraj99p

I am java professional and working in java for more than 8years now. I am also very good in mathematics. I can solve this problem using inheritance and designing proper classes. I can start immediately

\$95 USD in 1 day
(3 Reviews)
2.7
shikhaagarawal

Greetings! I think I am the best person you help you in this project. As i understood this project needs core Java knowledge and basic calculations. You can try me out here as I am SCJP(Sun Certified Java Developer) an More

\$90 USD in 5 days
(1 Review)
1.8
ahmedabdallah1

Ready for your job. I'm a java expert. Have good background with object oriented programming and java. I did a full paint application before using inheritance and abstract classes and other concepts of OOP. Ready to st More

\$45 USD in 1 day
(2 Reviews)
1.6
larryellison

Hello, I am a really good java developer.I can do this for you.I have developed a lot of softwares in java. I want you to have a look of the media player developed by me.Looking forward to speak with you. Thank you.

\$111 USD in 4 days
(1 Review)
1.0
TopTalent89

Hi, I would love to help you with this project. Please consider my bid for a high quality assignment. Let's discuss. Thanks.

\$100 USD in 3 days
(0 Reviews)
0.0
drejmar

Hi, I will do this assignment for you. It will be done by tomorrow. Following my graduation from Minnesota State University I tutored freshman and sophomore students object-oriented programming. Best Regards, Andrej

\$40 USD in 0 days
(0 Reviews)
0.0
appserv1ce

We provide you industry standard Mobile Apps, Software, Desktop Apps, Web Stores, Websites and Web Apps. So, you get all at one place! We can provide you the following: - iOS applications - Android applications - More

\$154 USD in 6 days
(0 Reviews)
0.0
BhargavaB

Hi this is bhargava . i am expert in java/j2ee .i am ready to complete your work . i am new to free lancer successfully completed 4 projects i am ready to provide quick solution.

\$70 USD in 0 days
(0 Reviews)
0.0