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
blsea [12.9K]
3 years ago
6

The key to providing controlled variability in algorithms is to employ one or more placeholders, called Select one a. methods b.

numbers c. parameters d. polynomials e. functions
Computers and Technology
1 answer:
lisabon 2012 [21]3 years ago
4 0

Answer:

c. parameters

Explanation:

Parameters are simply placeholders (sometimes called dummy variables) used mainly by methods to perform their given tasks so as to provide controlled variability in  the program(or algorithm). Sometimes they are called arguments. But then it is much more specific to simply use parameters rather than arguments because arguments are the variable values that the parameters are serving as placeholders for.

Parameters identify and describe values that are passed into a function or subroutine.

Parameters are also used for simulation and testing purposes where the input s to the program are or can be varied.

PS: Methods are just functions performed by a class in a program.

You might be interested in
What is the purpose of the " + " in the code labeled // line 2 below ?
UkoKoshka [18]

Answer:

To illustrate addition operation

Explanation:

Given

The above code segment

Required

Determine the purpose of "+" in label line 2

In line 2, num1 = 3  and num2 = 2 in line 3.

sum = 2 + 3 = 5 in line 4

From the given code segment, the plus sign is used as a string literal (i.e. "+").

This means that, the print statement will output: <em>3 + 2 = 5</em>

The "+" is printed in between 3 and 2.

So, the purpose of the "+" is to show the function of the program and the function of the program is to illustrate an addition operation between two variables

7 0
3 years ago
A computer physical parts are called
JulsSmile [24]
Computer hardware is what its called
7 0
3 years ago
We can use formatting before and after typing.​
Anika [276]

Answer:

i dont know but thanks for marks

8 0
3 years ago
Please choose odd one out please tell fast​
nikdorinn [45]

Answer: arrow key

Explanation:

3 0
3 years ago
Write a program that asks the user to enter the amount s/he has budgeted for a month. The amount should be between 1000 and 2000
Elena-2011 [213]

Answer:

The program to this question can be given as:

Program:

  //import package for user input.

import java.util.*;      

//define class

public class Budget                      

{

public static void main(String [] a)            //define main method.

{

//creating Scanner class object.

Scanner ob =new Scanner(System.in);    

//define variable.      

double budgetamount=0, amountspent=0 ,difference=0,total=0,num=0 ;        

int count = 0;                            

System.out.println("How much have you budgeted for the month? :");        //print message.

budgetamount=ob.nextDouble();                             //taking input

       while(budgetamount != 0)           //checkig number greater then 4 digite.

       {

           budgetamount= budgetamount/10;        

           ++count;

       }

       if(count>4)                 //condition

       {

       System.out.println("enter each expense, then type -999 to quit: ");

       while(num!=-999)               //taking expense  

       {

       total=total+num;                 //totaling expense

       num=scan.nextDouble();                  

       }

       if(total<=budgetamount)           //condtion for over budget.

       {

       System.out.print("under budget:");         //print message

       System.out.print(budgetamount-total);

       }

       else

       {

       System.out.print("over budget:");              //for under budget

       System.out.print(total-budgetamount);

       }

       }

       else

       {

       System.out.println("not valid");        //message for number lessthen 4 digit.    

       }                                      

}

}

output:

How much have you budgeted for the month? : 1200.55.

enter each expense, then type -999 to quit: 365.89

556.90

339.98

-999

over budget:1262.77

Explanation:

The explanation of this program can be given as:

In the above program we import the package in that is used for scanner class. This class is used for the input from the user after input we use the while loop and if-else statement. The while loop is the entry control loop It is used for input validation and if-else is used for the checking condition. Then we insert expense that is inserted by the user. Then we calculate under-budgeted and over-budgeted by conditional statement that is if-else. and at the last we print it.

5 0
3 years ago
Other questions:
  • Progressively enhancing a web page for different viewing contexts (such as smartphones and tablets) through the use of coding te
    11·1 answer
  • I need help RIGHT NOW PLZ!!!!!!!!!!!!! this is due in 5 mins
    13·1 answer
  • How efficient would a 6-bit code be in asynchronous transmission if it had 1 parity bit, 1 start bit, and 2 stop bits?
    5·1 answer
  • Using a wireless network without the network owner's permission is known as ________.
    15·1 answer
  • Match these items. 1 . Naturalization Act stated that a foreigner had to live in the United States fourteen years to become a ci
    5·1 answer
  • What will Jason need to assemble a microcomputer and connect it to memory chips
    8·1 answer
  • Jacob is a website designer. Whenever his company takes on a new project, Jacob takes the initiative and comes up with ideas and
    14·1 answer
  • What does it mean to influence the government? Use influence in a sentence.
    8·2 answers
  • Why does a computer need an operating system?<br><br> ​
    10·1 answer
  • Using an open connection to a small company's network, an attacker submitted arbitrary queries on port 389 to the domain control
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!