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
Karo-lina-s [1.5K]
3 years ago
7

Write a method named decimalToBinary that accepts an integer as a parameter and returns an integer whose digits look like that n

umber's representation in binary (base-2). For example, the call of decimalToBinary(43) should return 101011. Constraints: Do not use a string in your solution. Also do not use any built-in base conversion methods like Integer.toString .
Computers and Technology
1 answer:
zmey [24]3 years ago
7 0

Answer:

In Java:

public static int decimalToBinary(int decimal){

int binary = 0; // initial value

int currUnitPlace = 1; // working location

while(decimal > 0) {

// put remainder in current unit place

binary += currUnitPlace * (decimal%2);

decimal /= 2; // move to next bit

currUnitPlace *= 10; // move unit place

}

return binary;

}

You might be interested in
You want your computer to boot off of the network and have the ability to be brought out of sleep mode over the network. Which t
notsponge [240]

The two technologies should be implemented in the BIOS are PXE and WOL

<h3>What is the term above about?</h3>

WOL is known to be a term that connote that which is often used to put on (power on) and PXE is known to be a term that is often used for turning (booting) that is when one wants to load an OS from a remote server.

Conclusively, Note that  WoL often occurs before PXE and as such, he two technologies should be implemented in the BIOS are PXE and WOL.

Learn more about technologies  from

brainly.com/question/25110079

#SPJ1

4 0
2 years ago
Zack wants to be a landscape designer.which qualification would be best prepare him for work in this career
katen-ka-za [31]
Landscape design or landscape horticulture. a bachelor degree for these.
4 0
3 years ago
Read 2 more answers
_____ is a scam in which access to one's own computer is locked or restricted in some way.
gtnhenbr [62]
Ransomware is the answer to this.
5 0
3 years ago
The purpose of a database is to help people stop using spreadsheets.
IrinaK [193]

Answer:

Yes, the purpose of a database in a way is to stop people from using spreadsheets but, it is also so much more.

Explanation:

<u>Databases</u> are a vastly improved form of a spreadsheet. They allow Computer Scientists to automatize a company's information. Giving them the ability to instantly add, retrieve, and modify specific information within a database of hundreds or even thousands of entries. All this with little or no human input. Thus saving a company time and money as opposed to using a regular spreadsheet which requires manual input from an employee.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

3 0
3 years ago
What is the benifet of the manager feature
Masja [62]

Answer: Benefits managers administer an organization's employee benefits program, which may include retirement plans, leave policies, wellness programs, and insurance policies such as health, life, and disability.

Explanation:

8 0
3 years ago
Other questions:
  • Compare GBN, SR, and TCP (no delayed ACK). Assume that the timeout values for all three protocols are sufficiently long such tha
    7·1 answer
  • Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment v
    5·1 answer
  • What type of network is a private network that belongs to an organization that can only be accessed by approved internal users?
    15·1 answer
  • This is the formula for the future worth of an investment over time with consistent additional monthly payments and a steady rat
    10·1 answer
  • HTML and CSS are computer languages used to create what?
    11·1 answer
  • Which of the following is a negative effect of the rise in agricultural technology following World War II?
    5·1 answer
  • Nhiệt độ chiết rót của máy chiết rót có van trượt là bao nhiêu
    6·1 answer
  • PLEASE HELP!!!
    7·1 answer
  • On the MarketingConsultants worksheet, in cells D10:H13, use a PMT function to calculate the end of the month payment amount. En
    15·1 answer
  • Is a mainframe computer portable?​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!