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

Write a program that find the average of list of numbers

Computers and Technology
1 answer:
aniked [119]3 years ago
4 0

Answer:

huh I don't understand.............

You might be interested in
After creating an organizational strategy based on porter's models, a company can?
malfutka [58]
1.B 2.B 3.C 4.B 5.B 6.C 7.A 8.A 9.C 10.A
3 0
3 years ago
Read 2 more answers
Java can be used to create which of the following technologies?This task contains the radio buttons and checkboxes for options.
Tom [10]

Answer:

B JSP and servlets.

Explanation:

  • Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the web.
  • JSP and servlets; A servlet is a server-side program and written purely on Java. JSP is an interface on top of Servlets.
  • Active Server Pages (also known as ASP) is Microsoft's first server-side script engine that enabled dynamically-generated web pages.
  • Practical Extraction and Report Language (Perl) is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports based on that information.
5 0
4 years ago
Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job
viktelen [127]

firstly we have to create class and then constructors and method

let start with class

class Employee:

   def __init__(self, name, id, department, title):

       self.__name = name

       self.__id = id

       self.__department = department

       self.__title = title

   def set_name(self, name):

       self.__name = name

   def set_id(self, id):

       self.__id = id

   def set_department(self, department):

       self.__department = department

   def set_title(self, title):

       self.__title = title

   def get_name(self):

       return self.__name

   def get_id(self):

return self.__id

   def get_department(self):

       return self.__department

   def get_title(self):

       return self.__title

def __str__(self):

       return 'Name: ' + self.__name + \

              '\nID number: ' + self.__id + \

              '\nDepartment: ' + self.__department + \

              '\nTitle: ' + self.__title

Now to test the program

import emp

def main():

   emp1 = emp.Employee('name', 'id', 'department', 'title')

   emp2 = emp.Employee('name', 'id', 'department', 'title')

   emp3 = emp.Employee('name', 'id', 'department', 'title')

 

   emp1.set_name('Susan Meyers')

   emp1.set_id('47899')

   emp1.set_department('Accounting')

   emp1.set_title('Vice President')

   emp2.set_name('Mark Jones')

   emp2.set_id('39119')

   emp2.set_department('IT')

   emp2.set_title('Programmer')

   emp3.set_name('Joy Rogersr')

   emp3.set_id('81774')

   emp3.set_department('Manufacturing')

   emp3.set_title('Engineer')

   print()

   print(emp1)

   print()

 print(emp2)

   print()

   print(emp3)

main()

4 0
3 years ago
Carina is concerned that her computer is slowing down because it doesn’t have enough short-term memory. Which of the following s
steposvetlana [31]
I would say I think RAM? Hope this helps;)
8 0
3 years ago
Read 2 more answers
Array Challenge Have the function ArrayChallenge (arr) take the array of numbers stored in arr and return the string true if any
vampirchik [111]

Answer:

The code is given as follows,

Explanation:

Code:

#include <stdio.h>

#include <string.h>  

int n; //to store size of array  

char* ArrayChallenge(int arr[]) //function returns string true or false

{

  int i, j;

  int sum = 0;

  for(i = 0; i < n; i++)

  {

      sum = sum + arr[i]; //count sum

  }  

  for(i = 0; i < n; i++)

  {

      for(j = i+1; j < n; j++) //loop for every two elements in array

      {

          if(arr[i]*arr[j] > 2*sum) //check if proudct of two elements > 2 times sum

          {

              printf("\n%d x %d = %d, 2xSum = %d\n", arr[i], arr[j], arr[i]*arr[j], 2*sum);

              return "true"; //If proudct of two elements > 2 times sum. return true

          }

      }

  }

  return "false"; // If proudct of two elements < 2 times sum. return false

}  

int main()

{  

  printf("\nEnter size of array: ");

  scanf("%d", &n); //read size of array

  int A[n]; //array of size n

  printf("\nEnter array elements: ");

  int i;

  for(i = 0; i < n; i++)

  {

      scanf("%d", &A[i]); //read array from stdin

  }

  printf("%s\n",ArrayChallenge(A)); //ccall function and print answer

 

  return 0;

}

6 0
3 years ago
Other questions:
  • The linux command _______ can be used to list the current disk devices connected to the computer.
    8·1 answer
  • What type of camera is a cell phone camera
    14·2 answers
  • Fill in the function shopSmart(orders,shops) in shopSmart.py, which takes an orderList (like the kind passed in to FruitShop.get
    6·1 answer
  • Write the proghrams for the following:
    13·1 answer
  • Compare and contrast the properties of a centralized and a distributed routing algorithm. give an example of a routing protocol
    15·1 answer
  • Is the following statement TRUE or FALSE?
    9·1 answer
  • Software that uses signature-based detection contains a library of signatures of known _____?
    11·2 answers
  • Which types of file formats are the best choice for files that may need to be edited later?
    14·1 answer
  • Write a C console application that will be used to determine if rectangular packages can fit inside one of a set of spheres. You
    5·1 answer
  • Can someone compress this ipv6 address? 558c:0000:0000:d367:7c8e:1216:0000:66be
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!