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
Umnica [9.8K]
3 years ago
12

rite a complete function (DO NOT WRITE A COMPLETE PROGRAM: prototypes, no includes, no main, no input, no output) named average

that takes two arguments as described below and returns a double:•the first argument, named scores, is a one-dimension array of doubles, that are test scores•the second argument, named size, is an int that is the number of elements in the scores array•the return value is the average or mean of all of the test scores
Computers and Technology
1 answer:
qaws [65]3 years ago
5 0

Answer:

double average(double* scores, int size)

{ double sum = 0;

for (int i = 0; i < size; i++)

     sum += scores[i];

return sum / size; }

Explanation:

Above is the function defined and its explanation is as follows:

              double average(double* scores, int size)

  • A variable average with data type double having two arguments scores(array of doubles having scores) and size(number of elements of array scores).

                                       double sum = 0;

                                      for (int i = 0; i < size; i++)

                                      sum += scores[i];

  • All the scores in the array are added into a variable named sum with data type double.

                               return sum / size;      

  • Return value will give the average of all the scores calculated by dividing sum of all the scores with size(total number) of scores.
You might be interested in
If a user has one column in a table and would like to make it into two columns, which command should be used?
Vesna [10]
Split cells.

This answer needs to be twenty characters long to qualify so here is this useless sentence.
4 0
4 years ago
Explain one thing you will start doing as a passenger.
Diano4ka-milaya [45]

By definition we have to:

The passenger is every human being transported in a means of transport. (Except for the driver.)

Passengers can carry suitcases, bags or backpacks to carry their belongings from one place to another on their trip.

For safety, the first thing passengers must use in any means of transport is the safety belt.

This protects you from accidents that may occur during the trip.

Answer:

As a passenger, the first thing you would do is wear a seatbelt.

5 0
3 years ago
Read 2 more answers
Give 8 examples of Synchronous communication
SpyIntel [72]

Answer:

Synchronous communication examplesinclude: instant messaging, video conferencing, webcams, MUDs, MOOs, chat, Second Life. Examples of one-to-one synchronous communication include: instant messaging. Examples of one-to-manysynchronous communication include: video conferencing, MUDs, and MOOs.

5 0
3 years ago
How many features are there in the team​
sdas [7]

Answer:

<h3><u>Component Team</u></h3>
  • Leads to 'invented' work and a Forever-Growing Organization
  • Dependencies between teams leads to additional planning
<h3><u>Feature Team</u></h3>
  • Leads to customer focus,visibility and smaller organization
  • Minimizes dependencies between teams and increase flexibility

4 0
2 years ago
Care should be taken whenever you post comments or photos to any social media or other websites, because each of these online ac
ohaa [14]

Answer:

True is the correct answer for the above question.

Explanation:

  • The social website is used to connect the people using the internet to communicate. With the help of this, any people can communicate within the world's people.
  • If anyone posts their pictures or comment on this type of website, then they need to care for that post or pictures. it means he needs to make decisions to choose the pictures or comments while posting.
  • It is because when the user posts the wrong comments or pictures, then their popularity is less in front of the other people called society.
  • This concept is also said by the question, hence it is a true statement.
5 0
4 years ago
Other questions:
  • HELP PLEASE ASAP brainliest to accurate
    14·2 answers
  • a. Is there any functional difference between the class being instantiated in the following two ways? Balanced bal = new Balance
    15·1 answer
  • If there is no index.html file in the root folder nothing will be displayed when you navigate to the site address
    14·1 answer
  • A series of instructions that can be grouped together as a single command and are often used to automate a complex set of tasks
    11·2 answers
  • Using the slice operator, print your first, then last name.2. Print the length of your first name.3. Assume you have two variabl
    6·1 answer
  • A person gets 13 cards of a deck. Let us call for simplicity the types of cards by 1,2,3,4. In How many ways can we choose 13 ca
    5·1 answer
  • An Agile Team decides they want to use pair programming in future Iterations. Where should this be captured? g
    7·1 answer
  • No Browsing History While using the browser on your tablet, you realize that it is not keeping a history of websites you have vi
    13·1 answer
  • Write a computer program that determines how many grades are between 0 and 19.
    8·1 answer
  • Soa contains a lot of benefits, but _________ is not considered one of them.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!