Given an "out" string length 4, such as "<<>>", and a word, return a new string where the word is in the middle of the out string, e.g. "<>". Note: use str.substring(i, j) to extract the String starting at index i and going up to but not including index j.
makeOutWord("<<>>", "Yay") → "<>"
makeOutWord("<<>>", "WooHoo") → "<>"
makeOutWord("[[]]", "word") → "[[word]]"

Answers

Answer 1

Answer:

The following are the answer to this question.

Explanation:

In the given code, a "makeOutWord and word" is already used to hold some value. In this code, we define a string method "makeOutWord" that accepts two string variables "out and the word" in its parameter.

Inside the method, a return keyword is used that uses the string variable "out and the word" with the "substring" method, this method is used to returns a new string from an old string value, and it also uses the "word" string variable for the return value.  

please find the attached file for code:

Given An "out" String Length 4, Such As "&lt;&lt;&gt;&gt;", And A Word, Return A New String Where The

Related Questions

Explique como são gravados (escrita) os bits zero ou um no HD.

Answers

Answer:

The following are the description of storing bits into Hard-disk.

Explanation:

As we know computer only know the binary language, that is in the form of zero's and once's "0's and 1's". In the hard drive, it requires a magnetically covered rotating disc, that's  "head" passes over its platter.

It marked 0's and 1's on the platter as tiny electronic areas in the north.Its head goes to the very same location to read its information again, the north and south places pass there and assume from the 0s and 1s which are contained.

Is when a hacker prevents you from accessing your files and asks that you pay money to give you back access. It's NOT guaranteed that you'll have access to your files after payment.

Answers

Answer:

Ransomware

Explanation:

Ransomware is a cyber-computer term that describes a cryptic-associated cyber attack on people's account or personal related information, which prohibits the victim to gain access to those accounts or files such as social media account, and then demand certain sum to be paid before granting access. At the same time, payment doesn't ensure actual access by the victim to such an account.

Hence, in this case, the correct answer is RANSOMWARE

Answer:

b

Explanation:

When using bits to represent fractions of a number, can you create all possible fractions? Why or why not?

Answers

Here’s the answer
Ur welcome

Yes, utilizing bits to represent the fractions of a number allows us to produce all conceivable fractions.

What is bit that represents fractions of a number?

In the binary coding, a bit is referred to as a single digit. In digital communication and computing, it serves as the fundamental unit of information. It can have a value of 0 or 1. When creating fractions, we can do so by using the initial bits to represent the whole number and the last bits to represent the integers that come before the fraction.

Representing is the act of expressing understanding and expressing ideas via the use of figurative, concrete, abstract, and graphical symbols, words, and circumstances. It is possible to express fractions in a way that is very similar to how the positive factors of twice represented integers use the negative factors of two to sum to virtually fractional numbers.

Thus, Yes, utilizing bits to represent the fractions of a number

For more details about bit that represents fractions of a number, click here:

https://brainly.com/question/17582172

#SPJ6

provides access to the Internet; may also be internal

Answers

Answer:

Provides access to the Internet; may also be an internal modem.

Hope this helped you!

Explanation:

pls help me with this computer question
Is newspaper a simplex, half duplex or full duplex?​

Answers

Answer:

simplex

Explanation:

half duplex allows for comm in both directions, only not at the same time.

The relational operators have the property of _____; that is, the use of relational algebra operators on existing relations (tables) produces new relations.

Answers

Answer:

Closure

Explanation:

The relational operators have the property of closure ; that is, the use of relational algebra operators on existing relations (tables) produces new relations.

Tell me the defination of working principle of computer with all information​

Answers

Answer:

Computer do the work primarily in the machine and we can not see, a control centre that converts the information data input to output.

Explanation:

Please mark as brainlist please please!

What is a sign that content is
biased?
A. The author has a lot of experience in the topic
B. The author lists evidence
C. The author makes money in a connected area
D. All of the above

Answers

C. because it’s the only one where they would have a reason to be biased

The sign of having a biased content is that author makes money in a connected area. The correct option is C.

What is biased content?

A biased piece of content expresses an unreasonable preference or dislike based on personal preference: The meeting was reported inaccurately in the newspapers for instance.

Bias occurs when a writer shows favoritism or prejudice toward someone, something, or an idea.

Readers can identify biases by asking themselves a series of questions about a writer's language, facts, and evidence.

A biased estimator differs from the true population value. An unbiased estimator differs from the true population parameter in no way.

The author makes money in a related field, which is a sign of biased content.

Thus, the option C is showing that the content is biased, so it is the correct option as making more money than the limit in that area can indicate the biased behavior.

For more details regarding biased content, visit:

https://brainly.com/question/20900626

#SPJ2

PLEASE HELP ME!!! I NEED THIS ASAP!!!

Your response should be at least one paragraph (5 to 7 sentences).


What are three ways that you can protect and care for your camera? Why is taking care of your camera important?

Answers

Answer:

Bag it if you arent using it for shooting or rehearsal

always use lens cap

clean it

starve it

A program is divided into 3 blocks that are being compiled on 3 parallel computers. Each block takes an Exponential amount of time, 5 minutes on the average, independently of other blocks. The program is completed when all the blocks are compiled. Compute the expected time it takes the program to be compiled.

Answers

Answer:

The answer is "15 minutes".

Explanation:

The time of compilation for one block with all three computers would be denoted by the [tex]Y_1,Y_2 and Y_3[/tex].

Of all them.

[tex]Y_i \sim Exp(\frac{1}{5}) \ for \ j = \ 1,\ 2,\ and\ 3[/tex] and the average:

[tex]=\frac{1}{\lambda } \\ \\=5[/tex]

Let,

[tex]Z=Y_1+Y_2+Y_3, \\\\ then \ Z \sim \ Gamma ( \alpha =3, \ \ \lambda =\frac{1}{5})[/tex]

since independent of the total sum and the gamma distribution of parameters, [tex]\alpha = \ n \ \ and \ \lambda[/tex] are accompanied by exponential variables.  

Now the predicted value of Z can be found.

[tex]\bold{Formula:} \\\\ \to E(Z)=\frac{\alpha}{\lambda }\\\\[/tex]

[tex]=\frac{3}{\frac{1}{5}}\\\\= 3 \times 5\\\\= 15\\[/tex]

Therefore, it takes 15 minutes for the program to be compiled.

Anusha wants to use her computer,rather than handwriting the information on her notepad,to analyze her monthly expenses to make the job easier.Which of the following apps should she use?
A) A word processor app to keep a record of her expenses and make calculations
B) A personal interest app to keep a track of all the expenses based on her personal interests
C) A device management app to track all the expenses she makes using her credit and debit cards
D) A spreadsheet app to keep a record of her expenses,sort data,and make calculations

Answers

Answer:

C. A device management app to track all the expenses she makes using her credit and debit cards

Explanation:

It'd be smart to use a developed app that was programmed to store expenses.

Anusha wants to use her computer, rather than handwriting the information on her notepad. The following app should she use is a spreadsheet app to keep a record of her expenses, sort data, and make calculations. D is the correct option.

What is a spreadsheet?

The spreadsheet is a sheet with many cells, it is a function of Microsoft Excel. It is used to store information, and numbers, and it is also used to calculate large calculations and to store large amounts of information.

Spreadsheets are of many uses, all the data of the students or employees can be stored in the spreadsheet with their numbers and with their salary expenses. It also contains many functions that can be used to do heavy calculations.

Therefore, the correct option is D) A spreadsheet app to keep a record of her expenses, sort data, and make calculations.

To learn more about spreadsheets, refer to the below link:

https://brainly.com/question/14630899

#SPJ2

Select the best answer for the following:
Computer can
i. do calculations ii. store data 111. take a decision
a.
iv, all of them​

Answers

iv— it can do all of them

Which character is often used to identify registered trademarks and is available on the Insert tab and Symbols
group?
O ?
TM
+

Answers

Answer:"TM"

Explanation:

Describe how the process of sampling, RGB pixels, and binary sequences work together to display a digital color image. Plz I got an assignment due soon.

Answers

Answer:

Sampling, RBG pixels and binary sequences work together to display a digital color image by letting the computer know where the RBG pixel is going to be placed and what the opacity for that pixel is. The combination of these components is what gives you a digital color image.

Explanation:

I'm not sure if this is correct because I had trouble with it too but this is what I wrote for the answer.

Literally, sampling means the transformation of analog images to digital equivalents, where:

RGB pixels: These are the digital colors that are displayed on the screen after the analog images are sampled.Binary sequence: This is the process through which the analog images are sampled by binary representations of 0s and 1s.

For sampling to be done, the binary sequencing of the analog images  must first be done. When the binary sequence process is completed, the end result is transferred to the RGB pixels.

The RGB pixels get the output of binary sequence as its own input. Once the RGB pixels completes its transformation, the digital color images will then be displayed on the screen for the user to see.

Read more about the process of sampling at:

https://brainly.com/question/17389862

what is the meaning of website cookies? brief explanation ​

Answers

Answer: Cookies are messages that web servers pass to your web browser when you visit Internet sites

When using bits to represent fractions of a number, can you create all possible fractions? Why or why not?

Answers

Answer:

No, there will be values you cannot create, such as values smaller than your smallest bit place value, or values that are "in-between" other values. This inability to represent numbers exactly results in roundoff errors.

Explanation:

Answer:

Yes, we can create the possible fractions using bits to represent the fractions of a number.

Explanation:

A bit is defined as a single digit in the binary code. It is the basic unit of information in digital communication and computing. It has values either 0 or 1.

In the context, we can create the fractions by using the first bits in order to represent the full number and also the last for the bits as the numbers that is above the fraction.

Learn More :

https://brainly.com/question/17386539

Why would you convert your birth year to binary numbers?

Answers

Answer:

Write out your birthday in the following format: M/DD/YY. For example, if your birthday is on June 11, 2013, it would be written as 6/11/13.

2. Convert the birthday date to binary format. Using our same example from above, 6/11/13 translated into binary code would be: 110/1011/1101.

3. Select one color of bead to represent “0”, a second color to represent “1” and then the third color to represent a space (/) between the numbers.

4. Layout the beads to represent your birthdate in binary code. Don’t forget the third color for the spaces in between the numbers!

5. Once laid out, string all the beads on to the string or pipe cleaner.

6. Tie a knot around the ends and enjoy your one-of-a kind masterpiece as a piece of jewelry or a bag tag….the options are endless!

The Software Center is the same for every campus. I will have access to any software that I want Your answer: True or False ​

Answers

Answer:

true

Explanation:

i don't really know

A printer would be considered _____. Select 2 options. 1 an input device 2 an output device 3 hardware 4 software 5 storage

Answers

Answer:

an output device and hardware

Explanation:

Hardware is something that can be physicaly touched and an output device is something that gives information out, such as a monitor, speaker, or printer

A printer would be considered an output device and a hardware device.

What is an output device?

Any piece of computer hardware that translates information into a human-perceptible form or, historically, into a physical machine-readable form for use with other non-computerized equipment is referred to as an output device. Text, images, haptic, audio, or video can all be used.

What is a hardware device?

The chassis, central processor unit, random access memory, monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers, and motherboard are all examples of computer hardware.

A printer would be considered an output device and a hardware device.

Learn more about Output Device:

https://brainly.com/question/13014449

#SPJ2

En su cuaderno o carpeta de trabajo realice la conversión del sistema de numeración binario a octal según este ejemplo de manera clara y sencilla de los siguientes números. 110002 11011112 110000012 00101102 11002

Answers

Answer:

Following are the  conversion from binary to octal numbers:

Explanation:

Given values:

[tex]\to (11000)_2= (30)_8 \\\\ \to (1101111)_2 = (157)_8 \\\\ \to (11000001)_2=(301)_8 \\\\ \to (0010110)_2=(26)_8 \\\\ \to (1100)_2= (14)_8[/tex]

Steps to convert the binary value to octal value:

First, we convert the given binary value to the decimal point values, for example:

[tex]\to (11000)_2= 1 \times 2^4+1 \times 2^3+0 \times 2^2 + 0 \times 2^1+0 \times 2^0\\\\[/tex]

                  [tex]= 1 \times 16+1 \times 8+0 \times 4 + 0 \times 2+0 \times 1\\\\= 16+ 8+0+0+0\\\\= 24\\[/tex]

After converting the binary value into a decimal number, then we convert the decimal to octal, to convert the value into octal we divide the value from 8.

[tex]\to (24)_{10}= (30)_8[/tex]

similarly, we solve all of the above values.

What's true about freedom
of expression?
A. It's unlimited
B. It allows you to express your ideas
C. It allows you to express your opinions
D. Both B and C

Answers

Answer:

the answer is D. Both B and C

Explanation:

Answer:

its A

Explanation:

because freedom is the what we feel secure we feel free and of course we can do whatever we want

Select all that apply.

Which elements are available in the Illustrations grouping in the Insert tab?

Shapes
SmartArt
Text Box
Font format

Answers

Answer:

Shapes and SmartArt

Explanation:

Technical colleges offer certification in audio engineering through programs that are normally from 2 to 6 months long.

O False

O True​

Answers

Answer:

False

Explanation:

i said so

Answer:

A: False

Explanation:

edg2021

It needs longer then 2 to 6 months

Which situations are a good fit for using telehealth? Select 4 options.
A. You need an appointment to get tested for allergies.
B. You doctor sends you an email to remind you about an appointment.
C. You had a car wreck.
D. Your doctor emails you because your heart monitor shows an abnormality.
E. You need a referral to a skin doctor.

Answers

Answer:

A, B, C and E

Here, hope this helps...... ;)

Which is one use for a hyperlink? A. to create a heading style B. to animate important text C. to create a link to a website. D. to hyphenate words.

Answers

Answer:

D

Explanation:

Hyperlink in html, cascading style Sheets, javascript etc. Is use to connect one page to another.

Also, it can be used to link one site to another website.

So, according to the question below:

Which is one use for a hyperlink? A. to create a heading style B. to animate important text C. to create a link to a website. D. to hyphenate words

The correct answer is to create a link to a website. Which is D.

Why do some people think the global
economy is good for the United States?

Answers

Answer: is a

Explanation:

Tracy always starts facing which direction?


Answers

Answer:

tracy starts facing east

Explanation:

The time Yanni runs to catch Tracy is 20 minutes.

We are given that;

Speed of tracy= 1mile in 10min

Now,

We need to find the distance that Tracy and Yanni have traveled when they meet.

Let x be the time (in minutes) that Yanni runs, then Tracy runs for x + 20 minutes.

Since their speeds are given in miles per minute, we can write the following equations:

Distance traveled by Tracy = 1/10 * (x + 20)

Distance traveled by Yanni = 1/5 * x

They meet when their distances are equal, so we can set the equations equal and solve for x:

1/10 * (x + 20) = 1/5 * x

Multiply both sides by 10 to clear the fractions: x + 20 = 2x

Subtract x from both sides: 20 = x

Therefore, by algebra the answer will be 20 minutes.

More about the Algebra link is given below.

brainly.com/question/953809

#SPJ6

The complete question is;

Tracy is running a trail in Hanna park she can run 1 mile in 10 minutes Yanni is running the same trail as Tracy Johnny can run a mile in five minutes but starts running 20 minutes after Tracy started on the trail if they started the trail from the same point how long will it take Yanni to catch Tracy

_____ occurs when a social network user clicks a link and enables malware to post unwanted links on their page. A) Adware B) Phishing C) Clickjacking D) Malicious script scams

Answers

Answer:

I believe the answer is Malicious script scam

Explanation:

Attackers send the program to victims after attaching it. JavaScript and HTML Applications (HTA) are two additional ways to run malware using a script. Thus, option D is correct.

What Malicious script scams enables malware?

Malicious scripts are computer programs that are used on websites to upload malware such as viruses, adware, worms, backdoor assaults, Trojan horses, bots, logic bombs, and spyware by taking advantage of system weaknesses and vulnerabilities.

Attackers send the program to victims after attaching it. JavaScript and HTML Applications (HTA) are two additional ways to run malware using a script.

One of the most prevalent and hazardous forms of malware that takes private information is called a keylogger, which is a type of spyware.

Therefore, Keylogger software is employed by software businesses for legal development improvement purposes, but it is also maliciously employed by hackers to steal data.

Learn more about malware here:

https://brainly.com/question/14276107

#SPJ5

I cant get this for the life of me, I dont understand what im doing wrong, help?
def main():

numGuesses = 0
userGuess = 15
secretNum = 5

name = input("Hello! What is your name?")


userGuess = print ("Guess a number between 1 and 20:")

numGuesses = numGuesses + 1

if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")

if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")

if (userGuess = secretNum):
print9"Congrats! you are correct.")
main()

Answers

Answer:

what problems are you facing with this code?

Answer:

Your print statement has a 9 on it.

Make the smallest
nonzero number
possible, in binary,
with your
Flipply Do Pro.
What is the decimal
(Base 10) equivalent?

Answers

Answer:

Whole Numbers:

0000 0001 (Binary) --> 1 (Decimal)

Real Numbers:

0000 0001 (Binary) -->  0.00390635 (Decimal)

Explanation:

In general, the smallest nonzero number that can be displayed in binary that is a whole number is 1.  Consider that as you increase by 1 in the binary system starting from 0, you will have the following:

0000 0000 == 0

0000 0001 == 1 (Smallest nonzero)

0000 0010 == 2

0000 0011 == 3

... etc.

Notice the smallest value here is decimal 1.  With this in mind, you will need to "program" you Flippy Do Pro to display this value.  Alternatively, if you consider decimal numbers in binary with the Flippy Do Pro, you can have even smaller nonzero numbers.  Depending on where you decide to place the decimal, you can even have smaller nonzero values.

Let's assume that you say this is a fractional representation of binary on the Flippy Do Pro.  Then, you will say your decimal is infront of the display of the Flippy Do Pro, hence index 9 (which is not displayed).  From here, you will simply say the following:

0000 0000 == 0.0

0000 0001 == 0.00390635 (Smallest nonzero)

0000 0010 == 0.0078125

0000 0100 == 0.015625

... etc.

Note, in binary, as you move the value of 1 to the right of the decimal, you are doing (1 / 2^n), where n is the index value to the right of the decimal.

Hence, depending on if you are to consider just whole numbers or real numbers, the smallest value displayed can be different even though the number being displayed is still 0000 0001.

Cheers.

Other Questions
1 + 4x + 6 - x = y What are m and b in the linear equation, using the common meanings of m and b? what is a conditional statement Given segment XZ and point Y that lies on XZ, find XY if XZ = 37 and YZ = 18 which of the following practices would he considered a tactic of a robber baron?a. providing health care for employees b. paying low wages to workersc. paid vacations d. continued education for employees Find the value of x in each case: b)I will give 20 Brainly points if answered within 30 minutes!!!!!! a group of students is observing these two species of squirrel in forming conclusions about how they are alike and different which type of investigation is the group doing How many atoms of oxygen in the chemical fomula 2ca(cio2)2? The heart is ________________ to the urinary bladder A fireworks shell is accelerated from rest to a velocity of 68.0 m/s over a distance of 0.230 m.A) Calculate the acceleration. B) How long did the acceleration last? Which statement best revises the underlined sentence by adding vivid imagery? - All of the stars were named by students who had once sat in this very class. - There were handwritten names on the stars from previous students. - The multitude of blue stars, imprinted with gold lettering, resembled a sky of silent wishes. - Students had decorated the stars using gold lettering to write their names. 37.Except for one letter, the letters in the word FEAR follow one another in oppositeorder to that in which they occur in the alphabet. What is that letter?.. A cat welghs 10 pounds. What is the error in the measurement? 5%1%2% The _________________________ was the most important ceremony of the burial ritual for the Egyptians; it was performed on the mummy to insure that the dead could say the necessary spells in the afterlife. it is strong elastic and light .it is lutrous and easy to wash. so it become very popular for making clothes Which words best describe English settlers' attitude toward Native Americans? What scenario is an example of a physical change?A. Wood is burned in a campfire and is turned into ashB.a piece of metal is left in the rain and form dustC. Lead is melted into liquid to form dustD. Yeast turns sugar into energy,water, and carbon dioxide During the past 100,000 years, there were at least ___ glacial periods. a. 4 c. 20 b. 12 d. 60 Please select the best answer from the choices provided A B C D Teel structure of the first book of a series of unfortunate events (the bad beginning) Your employer was impressed by your CV and now he wants to know more about you as a person. This is a chance for you to tell your futur boss about yourself. the question below will help you commmunicate who you are and your motivation to work abroad.Alternatively, you may compose a letter to your English teacher, Elena.N.B. You are going to produce a connected text with a logical structure and paragraphs. Feel free toadd items you find interesting and relevant.1. How would you describe yourself? How would your family or friends describe you?2. What are you keen on (your hobbies, passions, favourite pastime etc.)? Examples can be sports, arts,choir, martial arts, church, scouting etc.3. Write about your family. Who is the person you feel closest to (your brother, sister, grandmother)? Inwhat situations do you seek advice from him/her?4. Write about your school. What study program have you chosen (service and transport, electrician,healthcare, restaurant and food)? Give motivation: e.g. I am interested in working with patients in anursing home, or I would like to work at a pharmacy. What subject/subjects are you passionateabout?5. What are your career plans? Write about your dream job and how you see yourself in 10 years'time. Do you connect your future life with working abroad?EN.B. Please, include photos and give them titles. It will help your employer to get to know you better. Becreative! :)Please Heeelp me I will give to teacher tommoro. I am not so god in english Based on the pattern, what are the next two terms of the sequence? 9, 15, 21, 27, . . .