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
suter [353]
3 years ago
8

/*

Computers and Technology
1 answer:
Lera25 [3.4K]3 years ago
4 0

Answer:

The answer to this question can be given as:

Method:

public static void showTwos(int number)  //method definition.

{

method body.  

System.out.print(number + " = ");  //print number

while (number % 2 == 0)   //condition

{

System.out.print("2 * ");    //print message.

number = number / 2;

}

System.out.println(number);    //print value.

}

Explanation:

In the above method definition firstly, we declare the method showTwos() that name is already given in the question then we pass a variable number as a parameter in the method. In this first, we take input number from the user and pass into this method. In this method we use a while loop it is an entry control loop in this loop first we modules the number if it is equal to 0.Then we divide the number by 2 and in the last, we print the value.

You might be interested in
The best way to find out the average salary in your company is to perform a technique, known as Advanced Calibrated Sampling (AC
Setler [38]

Answer:

Agree

Explanation:

The best way to find out the average salary in your company is to perform a technique, known as Advanced Calibrated Sampling (ACS).

7 0
3 years ago
A derived class has access to __________.
Kitty [74]

Answer:

Option a is the correct answer for the above question

Explanation:

The derived class is a class that inherits the property of the base class, and he can access the public variable and function or members of the base class or ancestor class.

Option 'a' also states the same and the question asked about the assessment of the derived class. Hence option a is the correct answer while the other is not because:-

  • Option b states about the private members, but it is not accessible by the derived class.
  • Option c states about the derived class members but it can also access the base class members.
  • Option d none of the above, but option a is the correct answer.

5 0
4 years ago
Write a python coding to input ten random numerical vales to a list. And display the list. Use a loop structure to enter values.
Zarrin [17]

Answer:

000110011111000010010101001001

Explanation:

8 0
3 years ago
PLEASE HELP!!!!!!!!!!
SCORPION-xisa [38]
I don’t know if u tried this yet but maybe acetone can help or vinegar?
8 0
3 years ago
Read 2 more answers
What is income?
s2008m [1.1K]
I think its D hope this help
5 0
4 years ago
Read 2 more answers
Other questions:
  • Hw to gain more knowledge ​
    6·1 answer
  • Which trait depicts honesty?
    10·1 answer
  • 2. Because technology is always changing, there are new applications being developed constantly. (1 point)
    9·2 answers
  • Computer architecture:
    6·1 answer
  • What Is The Oldest Known Analog Computer In The World?
    14·1 answer
  • What would be the desired output of the home-security system
    8·1 answer
  • Define each of the following data mining functionalities: characterization, discrimination, association and correlation analysis
    9·1 answer
  • You are embedding a video in your Webpage. What three formats should you specify in the source
    14·1 answer
  • Select the correct answer.
    5·1 answer
  • Utility software is used to maintain a computer.(yes or no)​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!