public class Exercise_07 { public static void main(String[] args) { System.out.println(bin2Dec("1100100")); // Purposely throwing an exception... System.out.println(bin2Dec("lafkja")); } public static int bin2Dec(String binary) throws NumberFormatException { if (!isBinary(binary)) { throw new NumberFormatException(binary + " is not a binary number."); } int power = 0; int decimal = 0; for (int i = binary.length() - 1; i >= 0; i--) { if (binary.charAt(i) == '1') { decimal += Math.pow(2, power); } power++; } return decimal; } public static boolean isBinary(String binary) { for (char ch : binary.toCharArray()) { if (ch != '1' && ch != '0') return false; } return true; } }

Answers

Answer 1

Answer:

mhm

Explanation:mhm

Answer 2
what does any of this mean?

Related Questions

PERGUNTA 1
Um pesquisador deve escolher o seu método de pesquisa:
a. Pelas facilidades em realizar a pesquisa.
b. Pelas experiências de outros pesquisadores.
c. Pelas especificidades do objeto de pesquisa.
d. Pelas regras dos manuais de pesquisa.
e. Por aquilo que for determinado pela instituição a qual está vinculado.

Answers

Answer:

c. Pelas especificidades do objeto de pesquisa.

Explanation:

É o que eu acho e quem achar diferente ta errado

As of 2007, how many concentrated solar power plants did the United States have?

Answers

Answer:

12,718

Explanation:

Hope this helps! Let me know! :)

Which definition of levels of is correct?
O A. voltage at which an audio device receives sound
B.
volume at which someone plays audio on a device
OC. voltage at which a device plays audio
OD. frequency of sound waves alternating on a device

Answers

Answer:

D. frequency of sound waves alternating on a device

Explanation:

Answer:

frequency of sound waves alternating on a device

Explanation:

Give me some information about Shakira because I need to do a project

Answers

Answer:Summary : She's a Columbian pop singer who's sold more than 70 million albums sold worldwide. Her best known songs are "Hips Don't Lie" and " Whenever, Where ever".

Explanation: Born on February 2, 1977 in Barranquilla, Colombia. Her full name is Shakira Isabel Merabarak Ripoll. She wrote her first song on May 11, 1985. On October 1st she had her first successful album. On September 21, 1998 her album was sold worldwide

Answer:

Shakira's hips don't lie.

What is the importance of size in graphic design?​

Answers

In design, size can function, size can attract or size can organize. When you are designing a piece, size plays an important role in making a layout functional, attractive and organized.


have a great day:)

When people become more dependent on digital technology in their lives, the potential for data misuse will grow. Explain the above sentence in your opinion.




**Answer and I will give you brainiliest**​

Answers

Answer:

yest that's correct.

Explanation:

for example we can see Artificial intelligence/AI the more it becomes super computer the future of human existence will be in jeopardy like in the movie Terminator.

some people will become lazy and don't use their brain for anything

Please please help I don’t understand this

Answers

Answer:yes because ye and yes

Explanation:

Yes because yss

Answer:

Yes and yes

Explanation:

It is this because yes

BRAINLIEST!!!!!!!!!!!!!!

Which of the following options in Backstage View should be selected if you want to open a new, blank document?

○ Share
○ Open
○ Export
○ New​

Answers

Answer:

New

Explanation:

open just makes you open the last project you were working on, new makes a brand new one.

When you wish to start afresh with a blank document, select new choices in Backstage Views.

Backstage View:

Opening simply opens the last project you were operating on, whereas new creates a whole new one.

This backstage view aids in the creation of new documents, as well as the saving, viewing, printing, and publishing of existing ones.

If you already have a document open, a window will pop up with data on the file, as shown below.

Therefore, the final answer is "New".

Find out more information about the View here:

brainly.com/question/14934880

How do I jitter click and aim? I have been trying forever and it is not working. Please help. (75 Points)

Answers

Answer:

Make sure you are not pressing the mouse button to click, but vibrating your hand to click. Try using two fingers to jitter-click, Sometimes you can improve your speed using your index finger and middle finger, or even your index finger and thumb. You can do this!

What are the different ways computers can process information?

Answers

To determine what to do with the instructions, the CPU goes through 4 steps to make sure the program runs without errors. The 4 steps are fetch, decode, execute and writeback.

Input, process, output, and storage are the the different ways computers can process information.


What is a computer?

A computer is a piece of computer components used to handle information or files. Data can be stored, retrieved, and processed by it. Maybe may already be aware of the fact you are able use a desktop to surf the Internet, send emails, type articles, and play online games.

The software directs but really the hardware actually does the information to output execution. Input, process, output, and storage are the four important information processing operations needed for a computerized system to operate.

Input, processing, as well as output are really the three phases of the computer. These stages are carried out by a computer "running" a code. A program comprises a set of detailed instructions that specify how the computer should process input to generate the desired result.

Learn more about computers, here:

https://brainly.com/question/21080395

#SPJ2

Question 3 of 15
Which term describes a computer program's ability to run, receive feedback to
rewrite, and improve its own algorithms for the future?
A. Machine learning
B. Operator with variables
C. Algorithmic bias
D. If-then programming

Answers

A. Machine learning

Machine learning is the study of computer algorithms that can be automatically modified for improvement through experience and the use of data.

Write a pseudocode algorithm to ask the user to input the name of a student, the marks he/she received in a test and the worth of the test. Calculate the percentage mark the student received. Print the student's name and percentage the student received.​

Answers

Pseudocode algorithms are used as prototypes of an actual program.

The required pseudocode algorithm is as follows:

Startinput name, score, test_worthpercent_score = score/test_worth * 100print name, percent_scoreStop

The first line begins the pseudocode algorithm

Start

The second line gets input for the student's name, score and the worth of the test

input name, score, test_worth

The third line calculates the percentage score

percent_score = score/test_worth * 100

The next line prints the student's name and the percentage score

print name, percent_score

The last line ends the pseudocode

Stop

Read more about pseudocode algorithms at:

https://brainly.com/question/21172316

__________(fill in the blank) in online education refer(s) to how online education impacts students of a specific economic group, ethnicity, gender, origin, race, or disability.
Accessibility
Ethics
Equity

Answers

Answer:

Equity in online education refer(s) to how online education impacts students of a specific economic group, ethnicity, gender, origin, race, or disability.

Explanation:

Equity in online education refer(s) to how online education impacts students of a specific economic group, ethnicity, gender, origin, race, or disability. The correct option is C.

What is equity?

Equity is a way of treating all people equal despite their gender, class, race or economic conditions. The true meaning of equity is being impartial. It is also equals to justice.

Online education is providing education with the medium of technology with no human touch. Online education is done when the teacher and the students are living far away and when there is a lockdown due to pandemics.

Online education can be taken by any person who has access to the internet, there is no partiality in it. And the meaning of equity is to make equal rules and conditions for everyone.

Thus, the correct option is C. Equity regarding the impact of online education.

To learn more about equity, refer to the link:

https://brainly.com/question/25947032

#SPJ5

Why is Search Engine helpful in our daily lives and how does Search engine works?

Answers

Search engines provide users with search results that lead to relevant information on high-quality websites. ... Search engines use complex algorithms to assess websites and web pages and assign them a ranking for relevant search phrases. These algorithms are jealously guarded and frequently updated.we

Answer:

search engine users with the search results that lead to relevant information on high quality websites

Explanation:

by crawing hundreds of billions of page using their own web crawlers

What is computer software?​

Answers

Answer:

Software is a collection of instructions and data that tell a computer how to work. This is in contrast to hardware, from which the system is built and actually performs the work.

Explanation:

HOPE IT HELP

Answer:

software is the collection of programs which makes computer work.

What function in the secrets module can generate random integers between one and 30, including the possibility of both one and 30.

secrets.random(30)


secrets.randbelow(31)


secrets.randbelow(30)

secrets.random(30)

Answers

Answer:

secrets.randbelow(31)

Explanation:

This is Python Language, and secrets is an external module. So, to use it you need to install it using pip, just type pip install secrets in any terminal. And secrets module will be installed. If you will use the 1st or last code it will give give you error, because secrets module does not have any attribute named random. If you will use the 3rd code it will print random number from 0 to 29 only. If you also want to print 30, you need to you need to write the code given below:

import secrets

secrets.randbelow(31)

_________(fill in the blank)in online education is about making sure that all students are able to use all the technology in the course.
Equity
Ethics
Accessibility

Answers

Accessibility Llllllllllllllllllllllllllllllllll

Answer:Below

Explanation:

what is HDLC flow control?​

Answers

HDLC is a synchronous Data Link layer bit-oriented protocol developed by the International Organization for Standardization (ISO).

What is the difference between cipher block chaining mode and electronic code book mode?

Answers

ECB (Electronic Codebook) is essentially the first generation of the AES. It is the most basic form of block cipher encryption. CBC (Cipher Blocker Chaining) is an advanced form of block cipher encryption. With CBC mode encryption, each ciphertext block is dependent on all plaintext blocks processed up to that point.

Answer:

ECB (Electronic Codebook) is essentially the first generation of the AES. It is the most basic form of block cipher encryption.

CBC (Cipher Blocker Chaining) is an advanced form of block cipher encryption. With CBC mode encryption, each ciphertext block is dependent on all plaintext blocks processed up to that point.

Where will a sprite On the Scratch website start at with coordinates (0,0)?

Answers

The answer to your question is stage center. Looking at the multiple choices, I think you should choose the answer, "the center of the screen". But I am not 100% sure if that's the right answer. Hope that helps.

Describe how reflection can be used to achieve team improvement.

Answers

Answer:

Explanation:

Research also proves that encouraging your team to adopt a reflective process is likely to improve job performance, especially when reflection is coupled with an examination of the strategies .

What agencies are in-charge of implementing the intellectual property code?

Answers

Answer:

List of Government Agencies in-charge of implementing the IPC: - Bureau of Patents. - Bureau of Trademarks. - Bureau of Legal Affairs.

Explanation:

Your answer → - Bureau of Patents -

There are a series of factors and people who save Glenn Curtiss from
bankruptcy what are they

Answers

Answer: "Due to patent issue, he paid his worker from his pocket. He paid 10,000 dollars bond which led him towards bankruptcy, Curtiss, have no option, so he accepted the challenge to fly from Albany to Manhattan and won a prized of 10,000 dollars. "

short answer:

The Wright Brothers and the Challenge to fly.

Explanation: hope it helps!

What do Virtually all of the 7 million millionaires in the United States do??
Virtually all of the 7 million millionaires in the United States:

never had to think about tomorrow, since they knew they would be rich.

were always thinking ahead.

wanted their money to work for them.

wanted to store their money under the bed.

were looking forward to buying a lot of nice toys.

assumed all sellers were telling the truth.

learned how to make smart decisions by doing their homework.

always paid their cell phone first.

always paid themselves first.

Answers

It is assumed by a lot of people that the life of the people who are very rich is very easy and that they do not have to work so hard. People think that the rich people have always had a bed of roses kind a life for them. But that is not the reality. Rich people also have to work hard to get success in their life and for that they have to think properly and wisely before making decisions in their life. These people have to make a lot of research and do a lot of home work before making decisions and have to think a lot. It is not very easy for them also.

Option 7 is the most apt

but if there can be multiple options, then it would be 2,3,7 and 9

Many people believe that the lives of the wealthy are easy and also that they do not have to work as hard as the rest of us.

7 million millionaires in the United States:

People believe that the lives of the wealthy has always been a bed of roses.

However, this is not the case. Rich individuals must also work hard in order to achieve success in life, and they must think carefully and sensibly before making decisions.

Before making judgments, these folks must conduct extensive study and complete extensive homework, as well as reflect deeply. It's not easy for them either.

So, option '7' is the correct answer to the following question.

Find out more information about 'Judgments'.

https://brainly.com/question/26380040?referrer=searchResults

How can we avoid falling victim to a phishing or pharming scheme

Answers

Answer:

First of all, to avoid phishing check the URL box in your browser, and check the original destination if there are typos in the URL high chance of a phishing attack. Also in the website check out for typos and check for any suspicious activity in the website.

А
B
1
Score
2
3
What type of
conditional
formatting was
used in Column B?
55
85
91
35
44
76
4
5
6
7
A. Highlight cells > 65 in red
B. Data bars
C. Color scales
D. Directional Arrow Icon
Set

Answers

Answer:

okay oh my gosh what's going on LOL

You plan to write an app to find the best hiking trails for families. Which statement is true about this step?
You have drawn pictures of what your screens will look like and identified the input-process-output that occurs on each screen.
You have defined a use case.
In this step, you defined your target audience and main goal.
Your app is functioning and ready to test.

Answers

The statements that are true about this step are:

In this step, you defined your target audience and main goal.You have drawn pictures of what your screens will look like and identified the input-process-output that occurs on each screen. Your app is functioning and ready to test.

Is it hard to create an app?

Most times, it often takes at least  4- 6 weeks to be a good Android developer. Note that a Basic developer skills are said to be not enough to build a commercial app and as thus, one need good training.

Conclusive, By knowing your target audience and  following the steps above, one can make a good hiking app.

Learn more about hiking from

https://brainly.com/question/16430743

Answer:

C:  in this step, you defined your target audience and main goal

Explanation:

got it right on edge

if a hacker wants to exploit the TCP three-way handshake, what is the most effective way to go about it?

Answers

The most effective way to exploit TCP three-way handshake is TCP SYN flood.

SYN flood attack is simply a kind of computer attack that begins with 3-way TCP handshake. TCP SYN flood is also called SYN flood and it is a type of distributed Denial of Service (DDoS) attack that uses every part of the normal TCP three-way handshake to eat up resources on the known server and render it non-functionalWith TCP SYN flood, a hacker can eat up resources of target's computer and makes it unresponsive.

From the above, we can therefore say that the most effective way to exploit TCP three-way handshake is TCP SYN flood.

Learn more from:

https://brainly.com/question/14739766

OSI layer for HDLC??​

Answers

Answer:

HDLC is one of the most commonly used internet protocols (IP) in what is Layer 2 of the industry communication reference model called Open Systems Interconnection (OSI).

Explanation:

Please complete the following questions. It is important that you use complete sentences and present the questions and answers when you submit your work.

Critical Thinking Questions
1. Describe a recent modern “story” you heard, read, or saw. Explain how that story taught you an important idea about life, family, or society. Be sure to talk about where/how you heard/read about the story in your description.
2. Describe a simulation game you’ve played recently or have heard about (you may even propose a simulation game idea yourself). Explain why that game fits the definition of a simulation.
3. In an age of books, films, and television, why are games important?
Think of a game you enjoy. For that game, describe some of its objectives, rules, operation, obstacles, and outcomes.
4. What is the main difference between a video game and other types of games (board games, card games, tag, etc.)? What are the similarities?

Answers

Answer:

due to recent times there has been injustice. the movement im talking about is blm or alm. theese rough times when socitey cant agree with each other. during theese times its taught me alot about both sides arguments. may 25 2020 "i cant breathe i cant breathe i cant breathe" george floyed was killed may 25 2020 this is when this whole mess started. building being burnt down to crips. people raiding the streets. people getting hurt. the pain some people felt was to much to handle that they dealt with it wrong. here is were alm comes in. alm all lifes matter, mexican lifes matter, black lifes matter, muslims lifes matter, chinnese life matetr white lifes matter unborn lifes matter and much more. blm supporters disagree that all lifes dont matetr untill black lifes do and that alm didnt exist until blm did. theese tough times taught me society needs to stick togther now more then ever and that the skin tone your size your religon dosent matter just how you treat other.

a simulation game. a stimulation game i propose is a simulation game were you live normal life. get a job pay rent and ect. which would teach kids how to work and how to earn money how to pay taxes. this game would be perfect to teach kids the importance of money and that money isnt earned easy. how i imagine it is the game is all about investing buying a better house getting a good job and not going bankrupt. you could even start a buisness which other players can shop in. this game would be the perfect fun and educational game.

in an age of books, films, television, why are games important? games can come in diffrent forms some teach you how to stay safe. some teach you how to run a buisness. some can even teach you how to invest. game can be educational and fun at the same time! games are great for whenever its raining outside and you have some spare time to get cozy and enjoy a game. some games can even bost your mental strength with puzzels and maze's which help your brain stay healthy.

my favorite game, is a board game monopoly. its a game were you invest in properties and NOT go bankrupt! its a fun game with lots of obstacles i enjoy that you play it with lots of people because in real life you will have obstacles people will try and get in your way.

a video game and a board game. the diffrence is video games can be good but can take a bad turn wuick to much is bad for you and like drugs can become addictive and somtimes even dangerous with hackers. a board game is safe because you just play it with your faimly and friends and there is no virus no hackers. there can be cheaters but much safer than video games. the simarlity is that they both can bost your mental stregth and keep your brain active with lots of thinking on the best move.

Explanation:

Other Questions
Which statement best describes how the author develops the central idea that sense of smell is an important part of memory recall in Beam Me Up, Smell-ie!? Aby sharing stories about how smells triggered memories for certain peopleBby illustrating a specific example of how a smell triggered a memory in an individualCby describing experiments scientists have done about memory and smellsDby explaining the scientific connection between the human brain and the sense of smell PLS HURRY ILL MARK BRAINIESTWrite an essay that explains how Sam's life was affected by each of the following events that occurred during the Reconstruction Era:Creation of the Freedmen's Bureau in 1863Congress passes the Thirteenth Amendment Congress passes the Fourteenth Amendment5 sentence (BRAINLIEST, 100 POINTS) during the revolutionary war loyalists were those americans who were loyal to the north american colonies and supported independence from great Britain true false Which of the following best describes a push strategy? Group of answer choices Manufacturer builds strong consumer demand for a product to force members to automatically promote the manufacturers product because it is in their obvious self-interest to do so. Manufacturer develops mutual effort and cooperation in the development and implementation of promotional strategies by working directly with members to develop strong and viable promotional support. Manufacturers use the push strategy to secure distributor cooperation by "pushing" their products through the channel. Manufacturers push strategies can be effective, however, they are limited in their ability to secure strong distributor support. Unlike the pull strategy, the push strategy requires indirect involvement from the distributor. Think about the possible costs and benefits of government intervention in this situation.A country's economy has not seen economic growth in the past two years. In fact, last year the GDP fell,unemployment rose, and consumers were nervous that their paychecks wouldn't be enough to cover their usualpurchases and bills in the coming months. Then the government decided, in the hope of getting the economygoing again, to spend billions of dollars on infrastructure projects such as road repair and high-speed railinstallation. It also reduced taxes in an effort to give people more money. However, because the government isspending money on projects and has less money coming in because of the lower tax rates, several governmentprograms have had their funding reduced and the country's debt has increased.Should the government have intervened in the economy as it did? Justify your response.Please help 1. Identify the scales of analysis in the two maps shown . 2. Explain why all of Southeast Asia is shaded in a single color in the world map , whereas Southeast Asian countries are shaded differently in the regional map . 3. Describe what the rice production data for Southeast Asia and West Africa , where rice is traditionally grown , imply about the intensity of land use in these areas . 4. Describe ONE technological advancement that made the Green Revolution possible . 5. Using the data shown on the maps , explain how the Green Revolution affected farmers in less developed countries 6 Explain the degree to which mechanization changed rice production in less developed countries 7. Explain how the use of agricultural chemicals contributed to the change in rice production Please respond on separate paper , following directions from your teacher . 20 points! Pls help me out with this! Due in just a few minutes!!! Which of the following is not a role of stockholders?Decide on company policiesPurchase shares in a corporationSeek government approvalElect a board of directors Data Set A: 1 3 3 2 4 0 4 3 3 5 2Data Set B: 3 5 5 4 6 1 6 6 6 6 5Based on the distribution which data set best measures of center and spread?Mean [ Select ]Median [ Select ]Quartiles [ Select ]Range [ Select ]Standard deviation [ Select ]Mode Solve the equation n - 19 = 13 What is the value of x? "Only 52 per cent of women married or in a union freelymake their own decisions about sexual relations, contraceptiveuse and health care. This shows that we still have a long way togo with regards to women's rights and gender-equality worldwide"Do you agree or disagree with the statement? Justify your answer with atleast TWO reasons.(2x 2 =4) which of the following would remain a liquid longest as the temperature continues to drop? propane, octane, hexane, ethane Importance of photosynthesis to humans Purpose of life afterlife help i mark brain thing 14. The Garcia family had dinner at a local restaurant. The total bill was $45. They want toleave a 20% tip. How much will they leave for the tip?a.$4.00b. $5.00c. $9.00d. $20.00infine What is the vertex form of a quadratic?A) y= a(x - h)^2+kB) y= (x -a)(x - b)C) y = ax^2 + bx + cD) y = mx + b Find the volume of the figure Using the letters of the word 'ADVERBS" write learnings you gained about adverbs. Mesopotamia is compared to what other civilization? GIVING BRAINLISEST UGH