Answer:
The answer to this question can be given as:
Class definition:
public class Averager //define class Average.
{
private int sum = 0;
//define variable sum.
private int count = 0;
//define variable count.
public int getSum() //define function getSum().
{
return sum; //return value.
}
public void add(int x)
//define function add().
{
sum = sum + x; //calculate sum
count=count+1; //increase value of count.
}
public int add(int x)
//define function add().
{
return count; //return value.
}
public double getAverage() //define function getAverage().
{
return (double)sum/count; //return value
}
}
Explanation:
The above class definition can be described as:
- In the above class definition first we define a class that is " Averager". In this class we define two integer variable that is "sum and count" and assign a value that is 0. Then we define a functions :
- First we define getSum() function in this function we does not pass any value and the return type of this function is int that will return an integer value.
- Then we define add() function we use this function two times but both functions have different from each other.
- In first time implementation, we define this function and the return type of this function is void which means it does not return any value. In this function, we calculate the sum value and increase the value of the count variable by 1.
- In second time implementation, we define this function and the return type of this function is int which means it will return a value. In this function, we will return the count variable value.
- At the last, we define a getAverage() that calculates the average of the added values in the sum variable and returns its value.
The answer is False.
The word "declining" means going down. So, in this case, the employees would go down or leave.
Answer:
the amount of C required is 190 units of C
Explanation:
the amount of C to cover the necessity of product A is
Ca = A units required * number of C units to manufacture a unit of A
Ca = 30 unit of A * 3 units of C/ unit of A =90 units of C
to produce B the same applies
Cb = B units required * number of C units to manufacture a unit of B
Cb = 25 unit of B * 4 units of C/ unit of B =100 units of C
therefore to cover the necessities of A and also B we will need:
total units of C required = units of C to produce A + units of C to produce B
C = Ca + Cb = 90 units of C + 100 units of C = 190 units of C
C= 190 units of C
Answer:
1.) Let a teacher, administrator or other safe adult know about what's going on.
2.) If someone is being physically harmed, you can call the police or 911.
3.) If the bullying is mild, (Name calling, insults, etc.) you can attempt to step in.
Explanation:
N/A