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

what is HDLC flow control?​

Answers

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

a paragraph about the different types of college degrees

Answers

Answer:

There are four major categories of degrees available for postsecondary students. These college degrees in order of complexity are associate, bachelor's, master's, and doctoral degrees. Earning one of these degrees can take 2-8 years, depending on the level of the degree and field of study. Graduate-level university degrees may require students to complete one or more undergraduate programs prior to enrollment. When comparing different degrees, students can consider which program best fits their career goals and academic interests. Keep in mind that all college degrees require completion of a high school diploma first.

Explanation:

Which of the following job duties would a software developer perform?
A. developing a product that is easy to use and meets a customer’s need
B. establishing security procedures to protect important information
C. managing and securing data
D. writing the code to make a new application work

Answers

Answer:

Either B or D but I think mostly B cause it makes more sense

Answer:

A. developing a product that is easy to use and meets a customer’s need

Explanation:

lnao its easy

definitely not b or d

Which of these would be a good name for a variable that holds a person’s first name?

tomSmith

N01

firstName

lastName

Answers

Answer:

firstNAme

Explanation:

Answer:

firstName

Explanation:

I took the test

How many hours do you spend on the Internet per day?

Answers

I spend maybe around 5-8 hours depending on my mind set

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:)

What actions does Kareem need to take to change the timing of an animation in one
of his presentation slides?
a) Change the order of the animation for the slide.
b) Change the type of animation for the slide.
c) Change the delay and duration for the slide.
d) Change the trigger for the slide.

Answers

What Kareem needs to do to change the timing of animation is change the delay and duration for the slide.

A typical Presentation slide helps to keep an audience's attention during a presentation and as well provide additional supporting information.

A presentation slides entails the use of text, images, artworks, aesigns, animation to facilitate a smart slide for proper presentation.

Animation basically move on the slides and are timed/programmed to move in a specific time or direction.

Therefore, in conclusion, Option C is correct. All Kareem have to do to change the timing of an animation in the slide is changing the delay and duration for the animation.

Read more on this here

brainly.com/question/11389651

________(fill in the blank)in online education is intrinsically related to equity.
Accessibility
Communication
Professionalism

Answers

Accessibility is the answer

someone pls help me!!!

Answers

Answer:

I think it’s really cool. You don’t have to find someone’s Gm ail and then write a subject and whatever else. You can just send it like a message. I love how it has the call option because it means that you don’t have to have a number to call your friends or family. And you can do business em ail while messaging whoever you need to instead of going back and forth.  

You can promote your business. You can also promote your video and share your screen. It is also a good way to talk to customers to discuss what you need to. A bunch of people have emails and it’s fairly simple to just add your friend and text them.  

It might be hard to figure out at first. But when you get used to it it’s fairly simple. It can also shut down due to a bug and stop working, which makes it even more complicated. You can also get creeps that can hack into your Gm ail and read all of your information.

Explanation: heres a better one with no typos

Question:
How many hours do you spend on the Internet per day? Can you live without the Internet for a week? How many aspects of your life depend on the Internet? How many times have you complained about your Internet connection speed?

Answers

Answer:

Living with no internet is indeed a possibility and a reality for many.

It's virtually impossible to go without internet for a significant period of time. Not only do you miss out on social events, but your work suffers too. However, I'd also recommend logging off occasionally; even if just for a day or two.

 Read articles offline.

Listen to podcasts offline.

Do a "brain dump" writing exercise.

Come up with a few weeks' worth of blog topics.

Interact with other humans.

Hold an impromptu staff meeting.

Take some time to relax.

Make some phone calls.

Explanation:

I  spend around 6-8 hours on the Internet each day. This includes using it for work-related tasks, browsing social media, watching videos, reading news, and other online activities.

How many hours do you spend on the Internet per day?

Can you live without the Internet for a week?

While you rely heavily on the Internet for work and communication, you believe you can manage without it for a week. However, it would require adjustments to your routine and finding alternative ways to handle tasks typically done online.

How many aspects of your life depend on the Internet?

Numerous aspects of your life depend on the Internet. Apart from work-related tasks, you use it for staying connected with friends and family, online banking, shopping, accessing information, streaming entertainment, and more. The Internet has become an integral part of your daily life.

Read more about Internet  here:

https://brainly.com/question/2780939

#SPJ3

Which of the following is an example of an output device on a smartphone?
the speaker
the microphone
the battery
the memory card

Answers

Answer:

The speaker

Explanation:

Speakers are output devices because the audio is taken from the app or website and playing it towards the speakers.

Explain how AI smartphone software in the rental car can be a threat to privacy.





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

Answers

Answer:

because of the gravity of the earth

Explanation:

because of the gravity of the earth

Answer:

Well, just like there is spyware on phones there are very much likely have spyware on cars too. Think about it if a car can connect to your phone via Bluetooth and take calls it can very possibly have a microphone in it. If that microphone was activated it would be a invasion of privacy hence it can be a threat to privacy. This includes dashboard camera and maybe even when you connect your phone to Bluetooth there might still be a possibility that it can steal your data through that.

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.

How to do this programming?

Answers

Answer:

let bread = 12.50

let chicken = 45.48

let total = chicken + bread

let tax = 62.04 - total

Of the following options, which is most helpful in developing the effective study habit of staying organized? Keep pens, pencils, and highlighters off the desk. Put all computer files in one folder on the desktop. Store notes for all courses in a single notebook. Use a calendar to keep track of assignment due dates.

Answers

Answer:

use a calendar to keep track of due dates.

Explanation: If you use a calendar all of your assignments will be kept track of and will be organized not causing you to stress or become unmotivated to do any work at all.

Use a calendar to keep track of assignment due dates is most helpful in developing the effective study habit of staying organized. Hence, option D is correct.

What is effective study?

Longer study sessions are less effective than shorter, more concentrated ones. In fact, one of the best study methods is to spread out your studying over a few sessions. During rigorous study sessions, which might last 30 or 45 minutes each, active learning strategies are applied.

Spaced practice, also known as scattered practice, is learning that occurs throughout a number of sessions at various times. Effective study methods can help you feel better about yourself, more competent, and more confident.

They can aid in reducing the pressure brought on by due dates and exams. You might be able to cut down on the amount of time you spend studying and free up more time by strengthening your study habits.

Thus, option D is correct.

For more information about effective study, click here:

https://brainly.com/question/10336207

#SPJ2

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


What important role is being described?
Completes the Action Item form.

Answers

Answer:

A sponsor is a member of congress who is willing to introduce and back the legislation. Explanation:

Project Description In this exercise, you are responsible for the design and implementation of a school dismissal database. School personal need a database to determine whether students ride the bus at the end of the school day or if students are pickup by an organization or designated adult. The database will be used by school personal to look-up the names of adults and organizations who have the authority to pick-up students from the school from school. To design the database, you will first review the preliminary design requirements. The preliminary design requirements are minimal and incomplete. Add requirements to complete the design of the database. Describe requirements on this document as indicated by the words, Complete this section of the document. You will use Oracle Data Modeler to create a logical and relational model. Then you will implement your database design as an Oracle database. After the Oracle database is created, reverse engineer the database to the relational and logical models.

Answers

Answer:

school bus for. the students

BRIANLIEST!!!!!!!!!!!!!!!!


Which of the following types of indents shown in the image?

○ Hanging indent
○ Right indent
○ First Line indent
○ Decrease indent​

Answers

The First Line indent is shown in the image. Thus, option C is correct.

What is an indent?

An indent is a spacing that results from spacing a block of information farther inside than just the surrounding content. To the right of the start of the following line, an indentation for the inaugural line appears. Many parts must follow first-line spacing according to APA standards.

The very first sentence about a partnership that follows a headline or chapter title is not indented, as was mentioned in the previous section.

The tab key on just about any keyboard automatically indent each sentence that comes after it for you. The different layout is occasionally recommended for specific sorts of writing, including research publications and internal memos. Therefore, option C is the correct option.

Learn more about indent, here:

https://brainly.com/question/12090649

#SPJ6

What is nanotechnology?​

Answers

Answer:

Nanotechnology is a field of research and innovation concerned with building 'things' - generally, materials and devices - on the scale of atoms and molecules.

Explanation:

The diameter of a human hair is, on average, 80,000 nanometres.A nanometre is one-billionth of a metre – ten times the diameter of a hydrogen atom.

Answer:

Nanotechnology are the areas of science and engineering where phenomena that take place at dimensions in the nanometre scale are utilised in the design, characterisation, production and application of materials, structures, devices and systems.

What refers to the images of characters you use in a game?

Answers

Answer:

the character image in the game

8. This machine is used for high speed, high volume printing l. Can print about 1000 papers at one point in time.

A) Scanner
B) Printer
C) Risograph
D) Photocopier

Answers

Answer:

Risographs can produce up to typically 150 pages per minute. So I'm guessing its c.

Explanation:

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)

PLEASE HELP ASAP WILL GIVE BRAINLYEST

Answers

A

B

C

D

Web camera   C

Printer   D

Hard Drive   A

Microphone   C

DVD    C

Scanner    C

CPU    B

Monitor     D

An Acceptable Use Policy (AUP) are designed for the purpose of _____.
compressing files
maximizing processing power
safety
anonymity

Answers

Answer:

maximizing processing power

An  Acceptable Use Policy is made up for safety. Check more about the terms below.

What does an Acceptable Use Policy made up of ?

An acceptable use policy is one that is made up of a general statement that links to the safe and good use of email and the internet.

Note that based on the above, An  Acceptable Use Policy is made up for safety of all in the use of the internet.

Learn more about Policy from

https://brainly.com/question/3653791

#SPJ2

What is another term for the notes that a reader can add to text in a word-
processing document?
Columns
Formatting
Font
Comments

Answers

Another term for the notes that a reader can add to the text in a word-processing document is known as Comments. Thus, the correct option for this question is D.

What are the characteristics of word documents?

The characteristics of word documents are as follows:

It allows a user to construct professional write-ups.It has editing and formatting tools that modify the existing documents.It authorizes the user to insert charts, tables, diagrams, etc. within the document to make it more attractive.

According to the context of this question, a comment is another term that represents the notes a reader can normally insert within the existing document in order to modify or highlight the required text in the document.

Therefore, a comment is another term for the notes that a reader can add to the text in a word-processing document. Thus, the correct option for this question is D.

To learn more about word-processing documents, refer to the link:

https://brainly.com/question/1596648

#SPJ1

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

Identify ways to safeguard computer against each of the following risk viruses, worms, Trojan horses, botnets, denial of service attacks, back doors and spoofing​

Answers

Answer:

First, never download software or videos from untrusted websites, as they can hide malicious code inside it. Never turn off the anti virus, anti virus only purpose is to block malware or viruses if you disabled it and don't know what you are doing high chance there will be a back door created in your PC. Try a antivirus that is well known and has good reputation on protecting a PC, note that good looking GUI on an antivirus doesn't tell it is always good, it's not the GUI you care about its the whole protecting your PC.

Identify uses of embedded computers?

Answers

Answer:

Explanation:

Applications that embedded computers are deployed for range from Industrial Automation and Control, Intelligent Transportation, Medical Imaging, Digital Signage, to unmanned military & defence – to name but a few. There numerous applications where a Embedded Computer can be deployed

Assume that two students are trying to register for a course in which there is only one open seat. What component of a database system prevents both students from being given that last seat?

Answers

Answer:

Transaction isolation

Explanation:

The student that has initiated the transaction before the other one will be given the seat. The database will be locked for the second student during the period of transaction of the first student. The transaction isolation level is a state within databases that specifies the amount of data that is visible to a statement in a transaction, specifically when the same data source is accessed by multiple transactions simultaneously.

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:

Student A gets the seatStudent B gets the seat

The following is not a possibility

Both students get the seatNone of the students gets the seat

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 complete and such data maintains competency.

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

Read more about transaction isolation at:

https://brainly.com/question/13030145

Other Questions
I will give brainliest if you correct."How to write a reflection on the changed I made for my paragraph"?Search it up I don't care I just need an example and yeah.right NOW! HELPPP! FASTTTT PLEASE PDJWIJPDHPHDPIHSPDHBSPIBSBPSIBPIBSOISBOBIBSOIBSOIBSOIBISOISBOISG I need help with my homework, its due today Someone Smart Help With Math! Brainiest (25 Each) if correct! Please help me with this image below and using this :: (between Israel, Turkey, and Saudi Arabia) (no symbol included) : ( details and points; should be about - ) (): (look below at image; Don't stress it; 2-3 sentences) (): (same as above; ' it though)Be serious please! Finish tonight though. 7. LL (0)What percentage ofoffspring will have longbeaks? Factorize mn-nq+mo-oq hand washing, routine cleaning and using ppe are examples of what type of practice? Solve four-tenths plus four ninths In the Plessy v. Ferguson case, the Supreme Court ruled thatsegregation was illegal and Jim Crow laws were unconstitutional.segregation was legal as long as facilities were separate but equal.segregation had been outlawed by the Fourteenth Amendment.segregation had been established by the Thirteenth Amendment. List all of the pages titles from the study "African American Migration" here. Then, write a sentence or twi summarizing the main ideas of the page. he curtain rises on an empty stage. It is late afternoon November, 1945. The rooms are dusty, the curtains in rags. Chairs and tables are overturned.It is early morning, July 1942. The rooms are bare, as before, but they are now clean and orderly.Read the two sets of stage directions in the passage. Then explain how you would set the stage to show that a time shift has occurred if you were the director. John is 5 feet 10 inches tall. There are 2.54 centimeters in 1 inch.What is Johns height in centimeters?25.4 cm17.78 cm177.8 cm152.40 cm Write the point slope form of a line that passes through (1,-5) and is perpendicular to a line with a slope of 1 Write examples of the sentences types below? Which table represents a linear function. Why should A chemical equation be balanced?A. To show that the reactants are compoundsB. To show metals from nonmetalsC. To show ionic compoundsD. To show the law of conservation of massPlease answer. No links please!!! The height, h, in feet of a ball above the ground is given by h= -16t^2+64t+80, where t is the time in seconds. How long does it take the ball to hit the ground? A) 3 seconds B) 4 seconds C) 5 seconds D) 6 seconds If g(3) = 5 and g(-1) = 5, explain why g(x) does not have an inverse. how does electron-pair repulsion determine the molecular shape?