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
Anastasy [175]
3 years ago
7

Choose the missing method name.

Computers and Technology
1 answer:
leva [86]3 years ago
3 0

Answer:

midpoint i'm pretty sure. :)

Explanation:

You might be interested in
If you are working on a document and want to have Word automatically save the document every minute, what steps should you use t
malfutka [58]
I think it is D but I'm not 100% sure

6 0
4 years ago
Who is the publisher of the book Vertebrates?
saveliy_v [14]
John Coefield was the publisher
3 0
4 years ago
15. Cinematic tutorials and action-movie camera shots mixed with gameplay and some of the features that have made _____ stand th
Salsk061 [2.6K]
It’s C: The last of us
7 0
3 years ago
Assume that two students are trying to register for a course in which there is only one open seat. What component of a database
lisabon 2012 [21]

The component of the database that prevents both students from getting the last seat is: transaction isolation

Data that enters the database are expected to maintain accuracy and also be consistent with the database structure.

So, when both students request for the last seat, the possibilities are:

  • <em>Student A gets the seat</em>
  • <em>Student B gets the seat</em>

The following is not a possibility

  • <em>Both students get the seat</em>
  • <em>None of the students gets the seat</em>

The above highlights means that, only one of the students would get the seat.

This is possible because of the concept called transaction isolation.

The transaction isolation ensures that the data requested by a user is <em>complete </em>and such data maintains <em>competency</em>.

So, when a student gets the last seat, the <em>next student </em>would not get the same seat (<em>or any other seat</em>), because a transaction has already been completed.

Read more about transaction isolation at:

brainly.com/question/13030145

8 0
3 years ago
Read 2 more answers
Max magnitude Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the
Ira Lisetskai [31]

Answer:

The java program is as follows.

import java.lang.*;

public class Numbers

{

   //variables to hold two numbers

   static int num1=-8, num2=-2;

   //method to return integer with higher magnitude

   public static int maxMagnitude(int userVal1, int userVal2)

   {

       if(Math.abs(userVal1) > Math.abs(userVal2))

           return userVal1;

       else    

           return userVal2;

   }

public static void main(String[] args) {

    int max = maxMagnitude(num1, num2);

 System.out.println("The number with higher magnitude among "+num1+ " and "+num2+ " is "+max);

}

}

OUTPUT

The number with higher magnitude among -8 and -2 is -8

Explanation:

1. Two integer variables are declared to hold the two numbers. The variables are declared at class level (outside main()) and declared static.

2. The variables are initialized with any random value.

3. The method, maxMagnitude(), takes the two integer parameters and returns the number with higher magnitude. Hence, return type of the method is int.

public static int maxMagnitude(int userVal1, int userVal2)

4. This method finds the number with higher magnitude using the Math.abs() method inside if-else statement.

               if(Math.abs(userVal1) > Math.abs(userVal2))

                   return userVal1;

        else    

                   return userVal2;

5. Inside main(), the method, maxMagnitude(), is called. This method takes the two variables as input parameters.

6. The integer returned by the method, maxMagnitude() is assigned to a local integer variable, max, as shown.

      int max = maxMagnitude(num1, num2);

7. The result is displayed to the user as shown.

System.out.println("The number with higher magnitude among "+num1+ " and "+num2+ " is "+max);

8. The class variables and the method, maxMagnitude(), are declared static so that they can be used and called inside main().

9. The variable, max, is called local variable since it can be used only within the main() where it is declared. It is not declared static.

10. The class is declared public since it has the main() method and execution begins with main().

11. The program is saved with the same name as the name of the public class having main(). In this case, the program is saved as Numbers.java.

12. No user input is taken for the two input parameter values. The static variables can be assigned any integer value and the program can be tested accordingly.

8 0
4 years ago
Other questions:
  • Match the job skills with the correct job role.
    12·1 answer
  • The goal of conducting an incident analysis is to ascertain weakness. Because each incident is unique and might necessitate a di
    8·1 answer
  • Which of the following is small Java code script that adds functionality to web pages in a browser?
    7·1 answer
  • Is a set of standards that define how email is to be processed between mail servers is exactly the same as smtp copies an e-mail
    10·1 answer
  • Clep allows students to do all of thw following except which?
    9·2 answers
  • In the RSA system, the receiver does as follows:1. Randomly select two large prime numbers p and q, which always must bekept sec
    6·1 answer
  • Which statement best describes the refraction of light
    9·1 answer
  • in windows 10, what feature is used to locate and launch software or applications installed on your device?
    8·1 answer
  • Computer science is a blank process
    6·2 answers
  • Add criteria to this query to return only the records where the value in the SubscriptionType field is Self or Family and the va
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!