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

Write an algorithm to find the average of three numbers: 10, 20, 30

Computers and Technology
1 answer:
STALIN [3.7K]3 years ago
3 0

Language: JavaScript

Answer:

let num = [10,20,30];

average(num);  

function average(num) {

 let sum = 0;

 for(let i in num) {

   sum += num[i];

 }  

 return console.log(sum/num.length);

}

You might be interested in
What skills and practices are important when creating an interactive program?
fenix001 [56]

The skills and practice that are important for creating an interactive program is brainstorming ideas, examination of similar programs and understanding of computer language.

<h3>What is an interactive program?</h3>

In computer, an interactive program refers to a type of computer software program that requires the user interaction to operate.

Some examples of the Interactive software includes word processors, spreadsheet applications, coreldraw etc

In conclusion, the skills and practice that are important for creating an interactive program is:

  • brainstorming of ideas
  • examination of similar programs
  • understanding of computer language.

Read more about interactive program

<em>brainly.in/question/4966741</em>

6 0
3 years ago
Do Y’all know how to view your answers to others people questions on your profile? Please answer fast
Pavlova-9 [17]

:Answer:first: <em>click on your profile you should see a little head after</em>, scroll all the way down u should see a <em>view proflie</em>-click on it after, u shoud see a <em>questions asked and questions answered</em>

<h2><em>hope this helped!!</em></h2>

Explanation:

5 0
3 years ago
The cafeteria offers a discount card for sale that entitles you, during a certain period, to a free meal whenever you have bough
melomori [17]

Answer:

Explanation:

The algorithm can be described as follows

The first process is to ensure that the constraints for the time at which the offers begin is well defined.

TIME1 = 14:00

TIME2 = 16:00

TIME3 = 18:00

Then, decide the final number of meal following the free meal that has been offered.

NUMBER_OF_MEALS=4;

Then; decide the prices attached to the meal at regular times.

PRICE = 200;

At regular mode, decide the prices attached to the meal and as well as when the offer time commences.

PRICE_OFFER = 160;

Then ask the client(i.e the user) to put in the value required for the number of meals they desire to order.

Input values in n

Suppose (the value exceeds 8)

Then proceed to enquire from the client if they wish to go for the offer.

If not, use the regular price for the order.

Assume the client asks if the offer is a good one to bid for.

You are to show then the analysis of the calculation.

regular = 8 × PRICE

offer = 8 × PRICE_OFFER

profit = regular - offer

Finally, show the profit to the client which will let them know if it is good to bid for it or not.

8 0
3 years ago
if someone has become very attached to their mobile device and feels anxious if the cannot connect to the internet, what are the
svp [43]

Answer:

Anxiety

Explanation:

trust I have it

4 0
3 years ago
Photographing during the midday can produce which of the following?
deff fn [24]
It can produce harsh shadows
5 0
3 years ago
Read 2 more answers
Other questions:
  • As yall know its spoopy season. This means spoopy music! I am having a live stream on the Spoon app under the username teendrago
    11·1 answer
  • "write a program that reads two floating point numbers and prints their sum difference and product."
    13·1 answer
  • In a video, a motionless image is called
    7·2 answers
  • When Clara accesses the programs and documents on her computer by way of icons, she is said to be employing
    15·1 answer
  • Evaluate the following expression with precedence of operator:<br> ​ X = 2* 3/ 5 + 10 //3 – 1
    13·1 answer
  • What is a traffic controller?what are its functions?
    13·1 answer
  • Https://www.blooket.com/play?id=300932<br> please
    8·2 answers
  • Fre.....ee p......oint....s
    15·2 answers
  • When looking at security standard and compliance, which three (3) are characteristics of best practices, baselines and framework
    8·1 answer
  • A customer wants to increase his storage capacity by 25gb
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!