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
Anna35 [415]
4 years ago
6

How many parameters go into the function sum, and how many return values come out of the function sum? function sum(first, secon

d, third){ var result = first + second + third; println(first); println(second); println(third); return result; }
Computers and Technology
1 answer:
zhannawk [14.2K]4 years ago
6 0

Answer:

3 parameters are passed into the function.

1 value will be returned from the function.

Explanation:

From the function definition "function sum(first, second, third)", we can see  that there are three value/parameters are passed in the function.Then variable "result" will be the sum all the three values. After that it will print the all three values in new line. Then the function will return one value which is the  sum of all three that is value of "result".As there is only one value returned  by the return statement in the function.

You might be interested in
Type the numbers 1-50 and then type Computers and Technology twice type it once forward and once backwards.
Ierofanga [76]

Answer:

Why?

Explanation:

7 0
3 years ago
Read 2 more answers
Could someone please paraphrase this for me and rewrite it in your own words??
Nady [450]

I will master the essentials for the Microsoft application Excel. My newly formed skills will be shown through my work shown through Spreadsheets i create and how i utilize mathematical functions in Excel. I am determined to increase my skill level by 90%. I will achieve this goal by the second marking period.

5 0
3 years ago
Frank lives in an area that experiences frequent thunderstorms. What precautionary measure should he adopt?
Sonja [21]

Answer:

I would go with A

Explanation:

6 0
3 years ago
rite a program to perform time conversion. The user will select from the following menu: Hours to minutes Days to hours Minutes
Vinvika [58]

Answer:

import java.util.Scanner;

public class TimeConversion

{

public static void main(String[] args) {

   

    Scanner input = new Scanner(System.in);

           

       System.out.print("1. Hours to minutes\n2. Days to hours\n3. Minutes to hours\n4. Hours to days\n");

       System.out.print("Enter your choice:");

       int choice = input.nextInt();

       

       switch(choice) {

           case 1:

               System.out.print("Enter the number of hours:");

               int hour = input.nextInt();

               System.out.println("There are "+ hour*60 + " minutes in " + hour + " hours");

               break;

           case 2:

               System.out.print("Enter the number of days:");

               int day = input.nextInt();

               System.out.println("There are "+ day*24 + " hours in " + day + " days");

               break;

           case 3:

               System.out.print("Enter the number of minutes:");

               int minute = input.nextInt();

               System.out.println("There are "+ minute/60 + " hours in " + minute + " minutes");

               break;

           case 4:

               System.out.print("Enter the number of hours:");

               int h = input.nextInt();

               System.out.println("There are "+ h/24 + " days in " + h + " hours");

               break;

           default:

               System.out.println("Invalid Input!");

       }

}

}

Explanation:

- Print the menu

- Ask the user to choose one of the options

- Depending on the choice, use switch-case statement to calculate and print required conversion

- Print an error message if the user enters a number that is not in the menu

7 0
3 years ago
Look at the following form. Which input method is the form using to receive the user's favorite activity? What is your favorite
frutty [35]

Answer:

Select box

Explanation:

The HTML select box gives a lot of options where the user selects only on from many. it is defined as

<select>

<option>option 1</option>

<option>option 2</option>

<option>option 3</option>

</select>

Above is a select box having 3 options for the user to choose from. Apart from the select box HTML provides the radio button, which also gives the user the ability to select one from many.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What will be displayed if code corresponding to the following pseudocode is executed? Set Number = 4 Repeat Write 2 * Number Set
    12·1 answer
  • Everyone’s favorite speedy blue hedgehog recently returned to his 2D origins in a critically acclaimed side-scrolling game. What
    8·2 answers
  • Which of the following is a malicious program that can replicate and spread from computer to computer?
    8·2 answers
  • In round-robin scheduling,a) the time quantum should be larger than the context switch time. b) the time quantum should be as sm
    15·1 answer
  • What does the action tool allow you to do in Microsoft Powerpoint?
    15·1 answer
  • A person is trying to remember a list of 12 different items:
    6·2 answers
  • Please can somebody help me! i’m really stuck on this question
    9·1 answer
  • Write method reverseString, which takes a string str and returns a new string with the characters in str in reverse order. For e
    8·1 answer
  • JAVA
    9·1 answer
  • Instrument Air system that employ a standby header shall be permitted to have a simplex cooler and dryer. Where a standby header
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!