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
S_A_V [24]
4 years ago
14

Determine the following information about each value in a list of positive integers.

Computers and Technology
1 answer:
german4 years ago
8 0

Answer and Explanation:

Using Javascript:

test7_11_13(num){

If(num%7===0||num%11===0||num%13===0){

Console.log("yes it is a multiple of 7,11 or 13");

}

else{

Console.log("It is not a multiple of any of the numbers");

}

function(num){

var makeString= num.toString();

var splitString= makeString.split("");

var makeNumber= splitString.map(Number());

var New_number= makeNumber.reduce(function(a, b) {

return a+b};,0)

}

If(New_number%2===0){

Console.log("it's an even number");

}

else{

Console.log("it's an odd number")

}

If(num%2===0||num%3===0||num%5===0||num%7===0||num%11===0){

console.log("it's not a prime number");

}

else{

console.log("it's a prime number");

}

}

From the above we have used javascript if..else statements to test the conditions for each question and output the answer to the console using console.log(). In the last part for prime number, you could also choose to use else if statements(if,else if, else if) to test the value of the num parameter and output if it's a prime number.

You might be interested in
A list is sorted by selecting the largest element in the list and swapping it with the last one. This technique is called ______
ratelena [41]
Selection sort is the answer
4 0
3 years ago
Help!!! Who is this? Who is it from?
sergey [27]
Show: Dragon Ball Super
Character: Vegito
8 0
4 years ago
Read 2 more answers
Hello can someone help with the output of this please?
Gelneren [198K]

Answer:

its a diamond shape

Explanation:

i did it on desmos please give brainliest please and good luck :)

8 0
2 years ago
3 of 10 Taking more than four years to graduate will increase costs and may impact a return on investment. What could you check
UkoKoshka [18]

The things to check is Why would finding graduation rates be useful in knowing an institution's ROI?

<h3>What is an institution of higher education?</h3>

The term “institution of higher learning” is known to be often called a college, university, or other kind of institution.

Note that it is one that takes about 4 years to complete or more. By answering the question of Why would finding graduation rates be useful in knowing an institution's ROI?., one can be able to know the reasons for the above.

Learn more about institute from

brainly.com/question/6947486

#SPJ1

7 0
3 years ago
Select the parts of a business letter.
erastovalidia [21]
First the heading, then the inside address, the greating, the body, the complimentary and last the signature line
6 0
3 years ago
Read 2 more answers
Other questions:
  • The information security organization performs a significant role in the implementation of solutions that mitigate risk and cont
    6·1 answer
  • Which best describes the difference between stocks and bonds ?
    8·2 answers
  • If you are going to attach more than 15 devices to your wireless network, you should make sure your router supports which standa
    14·1 answer
  • Write a program that asks the user for the name of a text file. the program should display the last 10 lines of the file on the
    13·1 answer
  • Grading on the curve is a method of grading that is based on the belief that letter grades for any given class should be distrib
    8·1 answer
  • There is a company of name "Baga" and it produces differenty kinds of mobiles. Below is the list of model name of the moble and
    7·1 answer
  • What in the world is this for and how do you use it
    8·2 answers
  • Why do we need on output device?​
    11·2 answers
  • Please help 2 lazy to do! easy question
    10·1 answer
  • You have two identical print devices that are set up in a work room. Currently, the Windows print server has two printers config
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!