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
NemiM [27]
3 years ago
12

Develop a Java program that deals with greatest common dominators GCDs of positive integers. GCD of two positive integers is the

is the largest positive integer that divides each of those two integers. The program works with the following specifications: a. Write a java method getGCD takes as parameter two integers and returns their greatest common divisor. The GCD could be computed for any two positive numbers. If the one of the two integers (or both) is negative the method should return -1. a. In the main method, • the program reads from the user the number of pairs of integers to get GCD of each pair. • According to the number of pairs, the program prompts the user to enter pairs of integers and saves these numbers in 2 single-dimensional arrays; the first array firstNumbersArray is for the first numbers in the entered pairs, and the second array secondNumbersArray is for the second numbers in the entered pairs. • The program should get the GCD of each pair by calling the method getGCD repeatedly and save the produced GCDs in a third single-dimensional array called GCDsArray. • The program should count the number of positive pairs that it could compute their GCD. • Finally, the program should print all the entered pairs with their GCD and the ratio of the pairs with positive GCDs compared to all entered pairs.
Computers and Technology
1 answer:
DENIUS [597]3 years ago
6 0

Answer:

i dont even know

Explanation:

You might be interested in
Chief technology officers typically earn more working for private companies than for schools or universities.
jonny [76]
The answer is true but it depends
5 0
4 years ago
Read 2 more answers
You bought a laptop assuming it had application software loaded so you could use it right away, but it did not. What quality con
docker41 [41]

The quality consideration that this laptop did not meet is: fitness for use.

<h3>What is a laptop?</h3>

A laptop can be defined as a small, portable computer that is embedded with a keyboard and mousepad, and it is usually light enough to be placed on an end user's lap while he or she is working.

In this scenario, the laptop you purchased didn't have preinstalled software applications that you could use right away. Thus, we can conclude that the laptop is not <u>fit for use</u> because it didn't meet the quality consideration.

Read more on a laptop here: brainly.com/question/26021194

6 0
2 years ago
What justification can you give for normalizing a database if the database will be updated only by the people who can be trusted
kakasveta [241]

Answer: C) Both a and b

Explanation:

 The main benefit of normalizing the database as it reduced the redundant data and due the lack of the redundant data, it saves lots of space in the database.

It also improve the update time in the database so it is easy to handle the database security in the system.

It is also has ability to store the dangling tuples so it can easily store all the information of the customer without introduce any inconsistencies in the database system.

Therefore, Option (C) is correct.

 

3 0
3 years ago
does someone know of a website where I can find free essays or assignments already answered (right or wrong, ain't matter), kind
nalin [4]

Answer:

Your

Explanation:

Taking answers from online is plagiarism. If you get caught, you could get in trouble. If you don't know the subject well enough that doesn't matter because apparently you don't care your grade.

5 0
3 years ago
Wich of these is an example of magnetic storage
kykrilka [37]
C-hard disk, DVD and cd are laser technology, and for usb - flash memory
8 0
3 years ago
Other questions:
  • Microsoft windows is the least used operating system true or false?
    15·2 answers
  • What is the difference between the audio mixer and meters panel.
    8·1 answer
  • Help me out with this .....
    10·1 answer
  • one data is in memory the computer interpets and executeinstructions to process the data into informationA. TrueB. False
    8·1 answer
  • What are the defenses to protect against these attacks?
    13·1 answer
  • Write the Stats method record that takes a test score and records that score in the database. If the score already exists in the
    15·1 answer
  • Write a program to find all integer solutions to the equation 4x + 3y -9z = 5 for values of x, y, and z between 0 to 100.
    11·1 answer
  • Ok it is important aspects which is perfect
    10·1 answer
  • A. Modify the FitnessTracker class that includes data fields for a fitness activity, the number of minutes spent participating,
    12·1 answer
  • While some audio recording programs are expensive, there are more user friendly,
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!