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
Art [367]
3 years ago
7

Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSa

les and decRate? The statement should assign the function's return value to the decDiscount variable.a. decDiscount = Call GetDiscount(decSales, decRate)b. Call GetDiscount(decSales, decRate, decDiscount)c. decDiscount = GetDiscount(decSales, decRate)d. none of the above
Computers and Technology
1 answer:
ryzh [129]3 years ago
3 0

Answer:

c. decDiscount = GetDiscount(decSales, decRate)                                                                                                                          

Explanation:

Option a. is incorrect because it is using Call word which is not a valid way to invoke a function.

Similarly option b. is also incorrect because it uses Call word to invoke function GetDiscount() which is not a valid way to call a function and also it is passing it the contents of three variables decSales, decRate and decDiscount and as mentioned in the question only two parameters are to be passed to GetDiscount() function.

Option c. is correct as it invokes the function GetDiscount() and passes it the contents of two variables decSales and decRate and assigns this to a variable decDiscount. For example if the GetDiscount() method has to calculate the discount using decSales and decRate then the resultant value of this computation is assigned to decDiscount. So whatever this function returns or computers is assigned to and stored in decDiscount variable. So this is a valid way to invoke a method.

You might be interested in
Jnhj hjibfnufnbfjbnkfv fj v
kirill [66]

Answer: baller.

Explanation:

6 0
3 years ago
Which technology can allow a single ground-based telescope to achieve images as sharp as those from the Hubble Space Telescope?
Ganezh [65]

Answer:

The correct answer to the following question will be "Adaptive Optics".

Explanation:

  • AO (Adaptive Optics) is a technique used to enhance optical system performance by reducing the impact of incoming gravitational wave distortions by compressing a mirror to compensate for the distortion.
  • It operates by calculating and compensating for defects in a wave-front with a system that corrects these errors as a deformable mirror or even a liquid crystal collection.
  • It is a technique that can make it possible for a single ground-based telescope to get images as clear as that of the Hubble Space Telescope.
  • Certain methods can achieve power resolution that exceeds the limit set by atmospheric distortion, for example, Aperture synthesis, Lucky imaging, and Speckle imaging.

Therefore, Adaptive Optics is the right answer.

7 0
4 years ago
What is modularity?
My name is Ann [436]

Answer:

Option D

Explanation:

Modularity in general defines the flexibility of a system. It is the degree to which a system can be broken down into smaller segments and then rearranged or recombines into new groups. Modularity is determined for multiple disciplines each having their own drawbacks.

8 0
3 years ago
Create your own unique Java application to read all data from the file echoing the data to standard output. After all data has b
mafiozo [28]

Answer:

<u>Output</u>

The values read are:  

25

3

4

65

7

9

5

6

1

11

10 data values were read

Explanation:

Below is the Java program to read all data from the file echoing the data to standard output and finally displaying how many data were read:-

import java.io.File;

import java.io.FileNotFoundException;

import java.util.Scanner;

public class MyFileReader {

public static void main(String[] args){

 int num,counter=0;

 File file=new File("numbers.txt");

 try {

  Scanner input=new Scanner(file);

  System.out.println("The values read are: ");

  while(input.hasNext()){

   num=input.nextInt();

   System.out.println(num);

   counter+=1;

  }

  System.out.println(counter+" data values were read");

 } catch (FileNotFoundException e) {

  // TODO Auto-generated catch block

  e.printStackTrace();

 }

}

}

8 0
3 years ago
Interior gateway protocols are used by routers in order to share information within a single
jenyasd209 [6]
Interior gateway protocols (IGP)are used by routers in order to share information within a single autonomous system. IGP<span> is used for exchanging routing information between gateways (commonly routers). </span><span>An autonomous system (AS) is a network or a collection of networks that are all managed and supervised by a single entity or organization.</span>
6 0
3 years ago
Other questions:
  • When an instance of a class, or object, is specified as a parameter to a method, a reference to the said object is passed to the
    15·1 answer
  • I am having trouble with logic gates(AND NOR,etc)
    8·2 answers
  • Which service is used when your email program exchanges messages with the mail server on a distant network?
    5·1 answer
  • What will be printed when the method printstuff is called?
    7·1 answer
  • Someone plzzzzz help me!!!
    6·1 answer
  • You want to make it possible for your smartphone to share its internet access wirelessly with your friends device which of the f
    10·1 answer
  • A conditional expression is normally expressed within the ___?___ or HAVING clauses of a SQL statement. (SELECT, ORDER BY, PARSE
    7·1 answer
  • I thought the answer was senior manager see on google it says
    8·1 answer
  • Which of these consoles had a 64-bit architecture
    10·1 answer
  • Terrel is designing and maintaining a web page for a local company. In which career pathways would Terrel be involved?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!