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
jolli1 [7]
3 years ago
14

Edhesive AP Computer Science Coding Activity 2:

Computers and Technology
1 answer:
Romashka-Z-Leto [24]3 years ago
7 0

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 />

You might be interested in
How would you define the term technology
ivanzaharov [21]
Technology is a way that most people are communicating now a days, whether it be with a phone, computer, etc. It’s is also how businesses can do things like making ad’s.

Not great at explaining things but you can probably make it sound a lot better by adding in your own word!
5 0
3 years ago
The second row of letters on the keyboard is called the______ row
Mkey [24]
The 2nd row of ur keyboard its called home row !

5 0
4 years ago
Read 2 more answers
You are the Emergency Management Director of a small island nation. Your nation has come under Cyber-attack and the attackers ha
kozerog [31]

Answer:

okay actually what are you trying to get an answer for

Explanation:

8 0
3 years ago
You are creating a program that can add up the amount of money the user spent that day. Right down to the penny! What kind of va
padilas [110]

Answer:A. A default Variable

Explanation:

5 0
3 years ago
Read 2 more answers
The Mark Table of Contents Entry option is used for marking nonheading text for the table of contents. the options are manually
enyata [817]

Answer:number 1

Explanation:asian culture

5 0
3 years ago
Read 2 more answers
Other questions:
  • Arpanet was developed by the united states so that there was a communication network that would survive a nuclear war. True or F
    11·1 answer
  • A drop-down menu must be contained by
    5·1 answer
  • What is used for World Wide Web?
    7·1 answer
  • Differentiate between Software as a service, platform as a service and infrastructure as a service.
    14·1 answer
  • 2. Suppose you want to write a method that prints a heading on a new output page, along with a page number that is 1 in the firs
    15·1 answer
  • A two-dimensional array can be viewed as ___________ and _____________.
    10·1 answer
  • B. What significant values have you learned while learning the tools and utensils?
    8·1 answer
  • PLZZZZZZZZZZZZZZZ HELP ME OUT!!!!! I SICK AND TIRED OF PEOPLE SKIPING MYQUESTION WHICH IS DUE TODAY!!!!
    14·1 answer
  • You can use this keyboard shortcut to toggle the visibility of the command line. If for some reason your command line is hidden
    7·1 answer
  • Cyber vulnerabilities to dod systems may include
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!