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
If you used the VLookup function, where would it look for a value?
zheka24 [161]

Answer:

rowwww potapot FG fhvnhtbrhabeynrynrynebeynye eynry eyney eyney e ye enegbe

4 0
3 years ago
Read 2 more answers
All of the following are design elements of a landing page that instill trust in site visitors, except Group of answer choices s
Gelneren [198K]

Answer:

large, clear, colorful action buttons.

Explanation:

A website refers to the collective name used to describe series of web pages linked together with the same domain name while a webpage is the individual HTML document (single page) that makes up a website with a unique uniform resource locator (URL).

When users (people) visit a particular website (homepage, index page or landing page) for the first time, there are certain design elements that when seen would give them a sense of security, instill trust and guarantees confidentiality of all user data (informations).

Generally, secure payment methods, social media presence, and visible contact information are design elements of a landing page that instill trust in site visitors.

However, large, clear, and colorful action buttons wouldn't do or cause any of the aforementioned actions.

7 0
3 years ago
There are three seating categories at a stadium. Class A seats cost $20, Class B seats cost $15, and Class C seats cost $10. Wri
Westkost [7]

Answer:

Following are the program to this question:

def calculate_income(num,seat):#defining method calculate_income

   if seat=="A": #defining condition for seat a

       return num * 20 #return value

   if seat=="B": #defining condition for seat b

       return num * 15 #return value

   if seat=="C": #defining condition for seat c

       return num * 10 #return value

def show_income(a,b,c): #defining method show_Income

   sum=a+b+c # add total seats income

   print("Income for A class seats: $",a) #print value

   print("Income for B class seats: $",b) #print value

   print("Income for C class seats: $",c) #print value

   print("Total Income: $",sum) #print value

def main(): # defining main method

   a=int(input("Enter class A seats: ")) #input seats a value

   b=int(input("Enter class B seats: ")) #input seats b value

   c=int(input("Enter class C seats: ")) #input seats c value

   a_income=calculate_income(a,"A")  #call method for seat a

   b_income=calculate_income(b,"B") #call method for seat b

   c_income=calculate_income(c,"C") #call method for seat c

   show_income(a_income,b_income,c_income) # call method show_income for print all seat value

main()

Output:

Enter class A seats: 2

Enter class B seats: 3

Enter class C seats: 2

Income for A class seats: $ 40

Income for B class seats: $ 45

Income for C class seats: $ 20

Total Income: $ 105

Explanation:

The description of the above program can be described as follows:

  • In the above python program, three methods "calculate_income, show_income, and the main method" were defined.  
  • The method "calculate_income" accepts two-variable "num and seat" as the parameter, inside the method a three if block is used, that calculate all types of seat class rate and returns its value.
  • In the "show_income", we add all the seat value in the sum variable and use the print method, that prints all seat cost, and total cost.
  • In the main method, we input all seat value from user input and pass into the calculate_income method and collect all the return value, after calculating calculate_income we pass its return value into the show_income method, that prints all value.
5 0
3 years ago
To use cut and paste, click the cut button from the ____ group on the home tab.
Setler [38]

I guess the correct answer is Clipboard

A clipbοard is a tеmpοrary stοragе arеa fοr data that thе usеr wants tο cοpy frοm οnе placе tο anοthеr. In a wοrd prοcеssοr applicatiοn, fοr еxamplе, thе usеr might want tο cut tеxt frοm οnе part οf a dοcumеnt and pastе it in anοthеr part οf thе dοcumеnt οr sοmеwhеrе еlsе.


5 0
3 years ago
What is the full form of MPEG?<br> The full form for MPEG is ________.
SVEN [57.7K]

Answer:

Moving Picture Experts Group

Explanation:

5 0
2 years ago
Other questions:
  • 10 10 105 Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. In addition
    8·1 answer
  • Ryan is looking at investment opportunities as a cloud service provider. He wants to invest in a deployment-based cloud model th
    11·2 answers
  • What is the disadvantage of a series circuit? A. The lights in a series circuit shine too brightly B. A series circuit can have
    8·1 answer
  • Write a program that checks for car mileage. if the mileage is greater than 100000, display "clunker!". if not, display "buy it!
    7·1 answer
  • When viewing data entered into a spreadsheet, the columns identify _____.?
    5·1 answer
  • Which of the threats discussed in this chapter should receive Charlie’s attention early in his planning process?Ethical Decision
    10·1 answer
  • Select the correct answer from each drop-down menu.
    8·1 answer
  • Examples of structures that can store homogeneous data element​
    14·1 answer
  • Q2: Mark True or False in the corresponding Answer sheet (0.5 point each)
    8·1 answer
  • A class member function that automatically initializes the data members of a class is called?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!