Create a class called month solution

Create a class called Month (java file called Month.java) with the (exact) following fields and methods (these
names and caps exactly):
Filed/Method Description
MonthNumber An int field that holds the number of the month
Number Name
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
12 December

Month A no-argument constructor that sets the monthNumber field to 1
Month A contructor that accept the number of the month as an argument (1, 2, etc) and sets
the monthNumber field to that value.
If a value less than 1 or larger that 12 is passed , the constructor should set
monthNumber to 1
Month A contructor that accept the name of the month as an argument (“January”,
February”, etc) and sets the monthNumber field to the corresponding number.
GetMonthNumber A method that returns the monthNumber field value
SetMonthNumber A method that accept an int number as an argument and sets the monthNumber field
to that number
GetMonthName A method that returns the name of the month corresponding to the monthNumber
field value
SetMonthName A method that accept a string value as an argument (representing the name of the
month: “January”, February”, etc.) and sets the monthNumber field to the
corresponding number (1, 2, etc) – Extra Credit
Equals A method that accepts a Month object as an argument and returns true if the data
from that object (its MonthNumber) is the same as the MonthNumber field or false
otherwise
GreaterThan A method that accepts a Month object as an argument and returns true if the data
from that object (its MonthNumber) is greater than the MonthNumber field or false
otherwise
LessThan A method that accepts a Month object as an argument and returns true if the data
from that object (its MonthNumber) is less than the MonthNumber field or false
otherwise
You are going to lose points if you do not name the class, the fields, or methods as requested. You should not
have a field for the month name: your code should compute the name of the month from the number when
needed. 
reate a program/project called [YourName]-Assignment6 (replace [YourName] with your actual name) in
the same project as the Month.java. You will need to add the class Month to the project and add your code to
the project class main method. The program (code) should:
Create three objects: Month1 one using the first constructor (with no arguments) and Month2 using the
second constructor with 2 as an argument, and Month3 using the third constructor with “October” as an
argument.
Use the GetMonthNumber to get the month number from objects Month1, Month2, and Month3 and output
the values to the console.
Use the GetMonthName to get the month name from objects Month1, Month2, and Month3 and output the
values to the console.
Use the SetMonthNumber to set the Month1 object value to 9.
Use the SetMonthName with argument “September” to set the Month2 object value to 9. – Extra Credit
Use the GetMonthName to get the month name from objects Month1, Month2, and Month3 and output the
values to the console.
Use the Equals method of Month1 to compare its value with Month2 value and output the result to the
console.
Use the GreaterThan method of Month2 to compare its value with Month3 value and output the result to the
console.
Use the LessThan method of Month3 to compare its value with Month1 value and output the result to the
console.







Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Get 15% OFF on your FIRST order. Use the coupon code: new15