+1(316)4441378

+44-141-628-6690

Programing Project

Due to the three parts to this assignment, if accepted, I’ll release the first half of payment when part 1 of this assignment is finished.

The project has three parts.  All three classes are to be worked within the starter code provided for you.

The starter code that is mandatory for this has been included in the attachments, thank you for your time.
________________________________________________________________________________________

Part I:

Work in class Circle.

Design a class named Circle with double fields named radius and circumference and area.  Include a no argument constructor that set the radius to 1 and calculates the other two values.  Include a second constructor that accepts a value for the radius.

public Circle()

public Circle(double radius)

Calculations:

The circumference is 2*pi*r.

The area is pi*r^2.

Use Math.PI for this calculation.

Include methods getRadius() and setRadius().  Also include a method getArea() and getCircumference().

The main method to enter data and display the data is provided for you.  You are to finish the Circle class in the Circle.java file.

________________________________________________________________________________________

Part II:

Work in class CheckArray.

Using a method

has4or5(int [] arr)

that reads in an integer array, return whether or not the array contains a 4 or 5.

If a 4 or 5 is found in the array, return true.  If no 4 or 5 can be found in the array, return false.

________________________________________________________________________________________

Part III:

Work in class ArraySize.

Start with 2 int arrays, a and b, each length 4. Consider the sum of the values in each array. Return the array which has the largest sum. In event of a tie, return a.

 

You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.

 

Latest completed orders:

# topic title discipline academic level pages delivered
6
Writer's choice
Business
University
2
1 hour 32 min
7
Wise Approach to
Philosophy
College
2
2 hours 19 min
8
1980's and 1990
History
College
3
2 hours 20 min
9
pick the best topic
Finance
School
2
2 hours 27 min
10
finance for leisure
Finance
University
12
2 hours 36 min
[order_calculator]