I've attached my Java implementation.
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
java
</span>
Answer:
The method in C++ is as follows:
double average(int v, int w, int x, int y, int y){
double ave = (v+w+x+y+z)/5.0;
return ave;
}
Explanation:
This defines the average method with 5 parameters
double average(int v, int w, int x, int y, int y){
This calculates the average
double ave = (v+w+x+y+z)/5.0;
This returns the calculated average
return ave;
}
To call the method from the program's main, use:
<em>int main(){</em>
<em> cout<<average(1,5,7,4,10);</em>
<em> return 0;</em>
<em>}</em>
<em />
Answerthats nice
(: -With Star
Explanation:
The answer is D. Because you are in the middle of the road so put your caution lights on and steer to the side of the road
C. Large Leaves
Explanation:
Large leaves enable the plant to absorb more of the scarce sunlight it recieves, so it can create enough nutrients for it to survive. Plants need sunlight to perform photosynthesis. Photosynthesis is when a plant takes in sunlight and turns it into food for itself.
Hope this helped!!