1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ivanzaharov [21]
3 years ago
9

Write the definition of a public class WeatherForecast that provides the following behavior (methods):A method called setSkies t

hat has one parameter, a String.A method called setHigh that has one parameter, an int.A method called setLow that has one parameter, an int.A method called getSkies that has no parameters and that returns the value that was last used as an argument in setSkies.A method called getHigh that has no parameters and that returns the value that was last used as an argument in setHigh.A method called getLow that has no parameters and that returns the value that was last used as an argument in setLow.No constructor need be defined. Be sure to define instance variables as needed by your "getter"/"setter" methods—initialize all numeric variables to 0 and any String variables to the empty string.
Mathematics
1 answer:
stealth61 [152]3 years ago
6 0

Answer:

public class WeatherForecast {

<em>//Instance variables initialized to default values </em>

private String skies = "";

private int high = 0;

private int low = 0;

<em>//Getters and Setters </em>

public void setSkies(String value) {

skies = value;

}

public void setHigh(int value) {

high = value;

}

public void setLow(int value) {

low = value;

}

public String getSkies() {

return skies;

}

public int getHigh() {

return high;

}

public int getLow() {

return low;

}

}

You might be interested in
If there are 15 cats in the apartment complex, how many dogs are there
erastova [34]
Well do u know how many there are?
7 0
4 years ago
Read 2 more answers
On a piece of paper, graph f(x)= {x if x&lt;2 2 if x&gt;2}
r-ruslan [8.4K]

Answer:

  see below

Step-by-step explanation:

The graph has two parts. There is one line for x < 2. It has a slope of 1 and a y-intercept of 0.

The line for x > 2 is the horizontal line x=2.

The point at x=2 is not defined by the function you have posted here, so there is a "hole" in the graph at that point.

4 0
3 years ago
kelly plans to put her graduation money into an account and leave it there for 4 years while she goes to collge she recieves $75
DedPeter [7]

Answer:

FV=887.3967212 $

Step-by-step explanation:

Use the compound-interest formula:

FV=PV(1+\frac{r}{n}) ^{nt}

Where:

FV=Future value or the ending amount

PV=Present value or the initial amount=750

n=Number of compoundings in any one year=2

t=Total number of years=4

r=interest rate=0.0425

Now, replacing the data in the equation:

FV=750*(1+\frac{0.0425}{2}) ^{2*4} =887.3967212 $

4 0
3 years ago
Hi how is your day going <br>I have to solve this problem. but I need someone to explain it to me ​
AnnZ [28]
You have to divide and wants you divided add the 4 numbers that will give you your answers
3 0
3 years ago
Read 2 more answers
The area of a triangular block is 64 in.². If the base of the triangle is twice the height how long are the base and the height
rosijanka [135]
The base will be 16in²  and the height will be 8in²
8 0
3 years ago
Other questions:
  • How is 8.6-0.047=8.553
    15·1 answer
  • S congruent to . If angle S is (5x-11) degrees and angle U is (4x+9) degrees, find the value of x.
    8·1 answer
  • Question 10 multiple choice
    11·1 answer
  • Simplify X 1/2 times X 2/3
    14·1 answer
  • Which of the following is true when comparing the following numbers on a horizontal number line?
    10·1 answer
  • The table shows the number of pets houses have in a neighborhood. What is the average number of pets per house (round to the nea
    12·2 answers
  • Average attendance is 15,,500. increased to 18,000. what is the percent/
    15·2 answers
  • Given the table of the following quadratic function, which statement about this function is NOT true?
    6·2 answers
  • A movie theater sold 64 Hckets. of the tickets sold were adult tickets. How many adult tickets were sold?​
    13·1 answer
  • During a guided tour of Sindrow Castle, a group of tourists climbed to the top of Fineview Tower.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!