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.
Answer:
The answer is "Option a"
Explanation:
Range-based for loop performs a sequence for a loop. It's more accessible as the conventional loop, for example, all components in the array, running more than a range of possibilities. In the given question "option a" is correct because it follows the correct syntax and other choices were wrong, which can be described as follows:
- In option b, It's not correct, because in this code the range declaration is wrong.
- In option c, It is wrong, because in this code the datatype is missing.
- In option d, It is illegal syntax, that's why it is wrong.
Answer:
it will be ethernet and wireless network adapter
Explanation:because, wireless card is will able to connect to network wirelessly ,ethernet card will connect to network with ethernet cable RG45
if you give more info about your question will; try to help you better.
Thanks
Answer:
C. layout of each page with its respective elements
Explanation:
A layout of each page with its respective elements will give the client a good idea of the final product and help him confirm his desires/requests towards the creation of the Web site. Most people are visual, especially about things they don't fully understand, so a clear and visual representation is best.
<u>A. Bulleted lists and titles</u>... won't give the idea of the full layout of the Web site.
<u>B. chart depicting</u>.... that's more a tool for the programmer than the client, although user flow is important, it isn't as much as the visual aspect of each page.
<u>D. pictures and screenshots of websites of other florists..</u>. That could be a useful aid on the first contact, but the question implied the Web site is already in progress... so that wouldn't help much.
<u>E. programming code for the website</u>, absolutely not, the client hired Jeremy not to have to deal with that.