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
Find the range, median, and mode for each data set
ziro4ka [17]
50, 66, 73, 74, 75, 75, 76, 76, 81, 81

Remember, the range is when you subtract the lowest number from the highest number :)

Range : 81 - 50 = 31

Remember, the median is the middle number of an ordered data set from least to greatest.

Median : 75

Remember, the mode is the number that is on there the most.

Mode : 75, 76, 81 are all considered to be modes. However, if that is not one of the answer options, then your answer would be : There are not modes.

~Hope I helped!~
4 0
4 years ago
when kara and Lauren add their ages, the sum is 20 when they multiply their ages, the product is 99 what is difference in their
Ksju [112]
X+y=20
xy=99
Let a+b be denoted a,b
20 = 1,19 2,18 3,17 4,16 5,15, 6,14 7,13 8,12 (9,11) ..Stop
99=3^2*11
Thus the ages are 11 and 9 with a difference of 2.
8 0
3 years ago
What is 8x+2y-10 over 2
sertanlavr [38]

Answer:

2

Step-by-step explanation:

3 0
4 years ago
Read 2 more answers
Which of the following shapes are rhombuses ? Choose two correct answers !!!!!!!!!!!!! Will mark Brianliest !!!!!!!!!!!!!!!!!
fiasKO [112]

<em>Answer:</em>

<em>Hi there! Your answer is </em><em>C </em><em>and </em><em>D</em>

<em>Step-by-step explanation:</em>

<em>You might know that a Rhombus is a special type of parallelogram whose all sides are equal. The difference between a square and a rhombus is that all angles of a square are right angles, but the angles of a rhombus need not be right angles. So, a rhombus with right angles becomes a square. </em><em> B </em><em>is not because all sides are equal and it has right angles. </em><em>A </em><em> is not because it does not have equal sides. I hope this helps! :]</em>

<em />

6 0
3 years ago
Answer is -16.....How to do the steps?
Likurg_2 [28]
Product of roots
Let x and y be the roots of given equation.

y+z=-b/a (sum of roots)

z×y= c/a(product of roots)

where "a" is coefficient of x^2 and "b" of x and "c" a constant.
In the given equation is a=1,b=h+4 c=-h^2
so product is given by

y×z= -h^2/1= product is -h^2


6 0
3 years ago
Other questions:
  • Someone please help me in this question it is kind of confusing it is a question under pre calculus in first year calculus i wil
    5·1 answer
  • Part of the graph representing an electrical signal is shown. The voltage rises steadily from an initial value (A) to a maximum
    15·2 answers
  • What is the reason for each step in the solution of the equation?<br><br> −6x+7x+14=3
    10·2 answers
  • True or false please help me ​
    9·1 answer
  • Find the slope of the line (-5,7) (-3,4)(-1,1)(1,-2)
    15·2 answers
  • Make x the subject of the formula 2y - 3x = 6​
    10·1 answer
  • Maria and her friends eat pizza for lunch.
    5·1 answer
  • I need a little help .??!??????????????????????
    12·1 answer
  • What is the range of the function f(x) = 3/4|x| - 3
    13·1 answer
  • A cake shop bakes a variety of brownies. the top-selling brownies are ones with toppings of chocolate chip, walnuts, or both. a
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!