Reference no: EM13693223
Question: Write a class named Month. The class should have an int field named monthNumber that holds the number of the month.
For example, January would be 1, February would be 2, and so forth. In addition, provide the subsequent methods:
* A no-arg constructor that sets the monthNumber field to 1
* A constructor that accepts the number of the month as an argument. It should set the monthNumber field to the value passed as the argument. If a value less than 1 or greater than 12 is passed,the constructor should set monthNumber to 1.
* A consructor that accepts the name of the month, such as "January" or "February" as an argument . It should set the monthNumber field to the correct corresponding value.
* A setMonthNumber method that accepts an int argument, which is assigned to the monthNumber field. If a value less than 1 or greater than 12 is passed, the method shuold set monthNumber to 1.
* A getmonthNumber method that returns the value in the monthNumber field.
* A getmonthNumber method that returns the name of the month. For example, if the monthNumber field contains 1, then this method should return "January".
* A toString method that returns the same value as the getMonthName method.
* An equal's method that accept a month object as an argument. If the argument object holds the same data as the calling object, this method should return true. Otherwise, it should return false.
* A greaterThan method that accepts a Moth object as an argument. If the calling object's monthNumber field is greater than the argument's monthNumber field, this method should return true. Otherwise, it should return false.
* A lessThan method that accepts a Month object as an argument . If the calling object's monthNumber field is less than the argument's monthNumber field, this method should return true. Otherwise, it should return false.
Make this program using java programming. Make this application in simple way.
Ph reading to approximate the ka for acetic acid
: Problem- A .1 M NaC2H3O2 solution gave a 7.77 pH meter reading. Use the concentration and pH reading to approximate the Ka for acetic acid. Show calculations.
|
Explain the conventions and rules used
: Problem- Please provides the formula for the listed coplex ions/compounds below. If you could explain the conventions and rules you used.
|
How many ml of alcohol are in the bottle of wine
: Problem- a) How many mL of a 45.0% (m/v) solution of NaCl would you need in order to have 12.0 g of NaCl. b) A bottle of wine contains 750.0 mL of wine. If the wine is 12.00% (v/v) alcohol, how many mL of alcohol are in the bottle of wine
|
What volume is milliliters of sodium hydroxide solution
: Problem- What volume is milliliters of 9.950 x 10-2M sodium hydroxide solution is required to reach the equivalence point in the complete titration of a 17.0mL sample of 0.114M phosphoric acid
|
Write a class named month
: Write a class named Month. The class should have an int field named monthNumber that holds the number of the month.
|
The highest temperature at which vaporization will occur
: Problem- A liquid mixture of 20 mol% benzen,50 mol% toluene, and 30%m-xylene is to be partially vaporized at 1 atm pressure. What is the lowest and the highest temperature at which vaporization will occur
|
Write the function - void shuffle
: Write the function: void shuffle(int ar[], int size); This function "shuffles" the elements in the array pointed by 'ar' (and whose length is 'size').
|
Write a net ionic equation that accounts for the ph
: Problem- A .10 M solution of socium cyanide gives a pH reading of 11.1. Write a net ionic equation that accounts for this pH and calculate the approximate concentrations of CN-, HCN, and OH- in the solution and the value of Ka for HCN.
|
Determine the potential energy due to the long-range
: Problem- Determine the potential energy (eV) due to the long-range dipole-dipole interaction for two polar molecules with dipole moments of 1.0 D at room temperature with an internuclear separation of 500 pm. Contrast this energy with the energy o..
|