write a recurseive string-returned function replace that accepts a string and returns a new string consisting of the original string with each blank replace with an asterisk

Answers

Answer 1

Answer:

Write a recursive, string -valued method, replace, that accepts a string and returns a new string consisting of the original string with each blank replaced with an asterisk (*)

Explanation:

Replacing the blanks in a string involves: Nothing if the string is empty Otherwise: If the first character is not a blank, simply concatenate it with the result of replacing the rest of the string If the first character IS a blank, concatenate an * with the result of replacing the rest of the string


Related Questions

After running an algorithm that you wrote, you find that you have made a mistake. What likely happened to make you realize this?
A. Extra steps were added to the sequence.
B. An unexpected outcome was reached.
C. The algorithm was difficult to follow.
D. The computer's work took much longer than expected

Answers

Answer:

After running an algorithm that you wrote, you find that you have a mistake. What likely happened to make you realize this It's D The computers work took much longer than expected.

After running an algorithm and noticing a mistake to notice a mistake, you likely ran into an unexpected outcome, hence option B is correct.

What is an Algorithm?

An algorithm is simply a computing program that solves a problem in a series of steps using a programming language syntax.

It should be noted that an algorithm is only correct if it produces the right output.

Learn more about Algorithm here:

https://brainly.com/question/24953880

#SPJ2

When iterating over a list, a for loop is usually simpler to code than a while loop.

A.
True

B.
False

Answers

Answer:

A

Explanation:

Yea imma have to say A

What is the default extension of Q Basic program file? ​

Answers

Answer:

Bas

Files written with QBASIC must be run using the program and have the "bas" file extension.

Hope this helps

#Carryonlearning

Suppose blocks hold either three records, or ten key-pointer pairs. As a function of n, the number of records, how many blocks do we need to hold a data file and: (a) A dense index (b) A sparse index

Answers

The blocks that are required to hold the three records or ten key pointer pairs are the data file and the dense index.

What is a data file?

The data file is given as the collection of the files in the computer that is used for storing the information.

The blocks for the ten pointer data files will be n in numbers. Thus, the dense index entry is used to search the data file with each key value. Thus, option A is correct.

Learn more about data files, here:

https://brainly.com/question/25704927

#SPJ1

Identifying and preventing incorrect claim payments and fraudulent activities falls under which type of data mining applications?
A) computer hardware and software.
B) retailing and logistics.
C) insurance.
D) customer relationship management.

Answers

The act of knowing incorrect claim payments and fraudulent activities falls under insurance type of data mining applications.

How is data mining used?

Data mining is known to be a tool that is often used by lots of insurance providers as it helps them to be able to know or predict the claims that are fraudulent so that one can be able to rightly target their resources and recoup a good amounts of money.

Conclusively, the act of Identifying and preventing incorrect claim payments and fraudulent activities falls under insurance type of data mining applications as it helps handles all issues regarding the above.

Learn more about data mining applications from

https://brainly.com/question/2596411

what symbol is used when you are using the truncation method of searching and how does it effect the results of the search I'll give 50 point I need help quick!​

Answers

Answer: Truncation

Explanation:

— a symbol added to the end of the root of a word to instruct the database to search for all forms of a word. The asterisk (*) is used in many databases for truncation.

In Exchange, to prevent loss of data from the last backup, a ____ file or marker is inserted in the transaction log to mark the last point at which the database was written to disk.

Answers

the answer is checkpoint

When you start a new, blank document, you usually end up changing the font to arial 11. 5 point. How can you make these settings the default for this and all future new documents?.

Answers

To make a particular font type and font size persit for other documents on future, you have to set it as the defult.

Formatting Word Processors

We will assuming the word processor is ms-word, to make the font persist got to Home, then select the font Button Image, after that you select the size you want and click "Select As Default" and "All documents based on the Normal template".

This will make it you default settings so that in future you do not have to format it again, and ensure you have all the required permission to make these changes

Learn more about word proccessor here:

https://brainly.com/question/1022352

The owner creator of a folder/file object has complete access to the object even when no user or group is assigned any access to the object.
a. True
b. False

Answers

Answer:

True

Explanation:

The owner creator of a folder/file object has complete access to the object even when no user or group is assigned any access to the object. True.

A network administrator sets up a wireless access point (WAP) in the office. Management wishes to allow access to only certain mobile devices owned by employees. What setting on the WAP would the network administrator configure

Answers

The setting on the WAP that the network administrator would configure is MAC filtering SSID Band (Service Set Identifier).

What is the role of a service set identifier SSID )?

The service set identifier (SSID) is known to be a kind of network name that  often functions to tell the wireless network.

Note that all the network do have a single SSID that helps them to tell the network, and the name is often used by clients to link to the network and as such, the setting on the WAP that the network administrator that can configure the above is MAC filtering SSID Band (Service Set Identifier).

Learn more about network administrator  from

https://brainly.com/question/4264949

Although email is the most common form of spam, many are not aware that viruses and spam can be sent in the form of instant messaging, online forums, social media and even text messaging. Question 4 options: True False

Answers

It is true that even if emails are the most common form of spam, they are not the only type of spam.

What is spam?

This term refers to a type of unwanted and often useless form of communication that is sent to many users at once. The most common type of spam are spam e-mails.

Are there other types of spam?

Spam is very common nowadays and it has extended to other forms such as:

Text messages.Spam in social media.Spam in forums.

Learn more about Spam in: https://brainly.com/question/17562633

#SPJ1

Summarize the features of several stand-alone operating systems ​

Answers

Answer:

Stand-Alone Operating Systems •Microsoft Windows Mobile –Designed for smartphones and PDAs –Includes simplified versions of Windows programs –Supports handwriting recognition and voice recording –Supports synchronizing with corresponding programs on desktop computers

Explanation:

Stand-Alone Operating Systems •Microsoft Windows Mobile –Designed for smartphones and PDAs –Includes simplified versions of Windows programs –Supports handwriting recognition and voice recording –Supports synchronizing with corresponding programs on desktop computers

What is the weirdest question you could ask?

Answers

Answer:

can i kidnap ur dog?

Explanation:

Answer:

Do you need any diarrhea medicine?

Explanation:

In a certain computer program, two positive integers are added together, resulting in an overflow error. Which of the following best explains why the error occurs?.

Answers

Overflow error is an error that occurs in a program with data outside its scope as input. This occurs because only a fixed bit of a certain range can be used.

What is the relationship between a program and an integer?

Integers are the values used to denote the number and variables in a program. The program only recognizes a source code of specific digits as its programming language.

A fixed number of bits are used in the programming language in computers and number more than that are not recognized and results in an error.

Therefore, the error is caused due to the high computed sum of the two integers.

Learn more about programming errors here:

https://brainly.com/question/27326665

#SPJ1

Write a program that creates an array of four float elements. Use a for loop to read and store a float value at each index in the array. Then use a for-each loop to print out each element to the console.

Answers

Answer:

So, for an old fashioned loop over a floatArray, you need an int for the index and a float for the value.

Explanation:

If floatArray = [2.2, 4.4, 6.6, 8.8]

In hypothesis testing, the tentative assumption about the population parameter is.

Answers

Answer: null hypothesis

Reason: It’s right trust me

Who would win in a fight, Noble 6 from halo reach or Master Chief??

Answers

Answer:

The Master Chief would win. He is better than Noble Six in almost every way. Spartan III's were started to be cheap and disposable, Spartan II's were built to last. Not only were the Spartan II candidates stronger before augmentation, they were also given better augmentations and better armour than the Spartan III's.

Explanation:

Answer:

Master Chief without a doubt. While it probably would be a good match, Master Chief has the experience, personalized A.I. to enhanced his reflexes, better armor, and Spartan II's overall had the more effictive augementations. Six on the other hand is a Spartan III. While some select Spartan III's recieved Mjolnir Armor like the Spartan II's they never recieved the same training from 6 years old. They also didn't have as nearly as good of an augmentation process as the II's. Noble Team doesn't even have a smart A.I. (Dot is not a smart A.I.) This is just the bottom line on why Chief would win.

Explanation:

Which reports indicate how traffic arrived at a website?.

Answers

Answer:

Direct traffics.

Explanation:

This channel refers to those traffics that came directly and without any via.

Open up the File menu. What functions are listed here? List three

Answers

Copy
Search
Create folder

Answer:

Common File menu functions include: New, Open, Close, Save, Save As, Page Setup, Export as PDF, Properties, Print Preview, Print, and Exit. The functions may be different depending on the program you are using.

Explanation:

Its the answer I took this assignment

A client is attempting to access a secure Wi-Fi network. To be successful, which action would the client need to do

Answers

Secure WiFi used passwords, so the client needs to have the correct password

A coffee shop is considering accepting orders and payments through their phone app and have decided to use public key encryption to encrypt their customers' credit card information. Is this a secure form of payment

Answers

Somewhat they store the credit info

Which term refers to the science that specifies the design and arrangement of items you use so you interact with the items efficiently and safely?.

Answers

Answer:

the ergonomics To prevent a laptop from being stolen, you can use a surge protector. False; To prevent laptops from being stolen, you can use a cable lock. What is a digital certificate?

If A is the base class and B is a class derived from A, then Group of answer choices class A has all the members of class B. class B has all the members of class A. classes A and B always have the same members. class A becomes a member in class B.

Answers

A class is a template specification of the methods and variables of a certain type of object in object-oriented programming. The correct description is "Class A has all the members of class B".

What is a class?

A class is a template specification of the methods and variables of a certain type of object in object-oriented programming. An object is therefore a specific instance of a class that holds real values rather than variables. One of the fundamental concepts of object-oriented programming is class.

Since class A is the base, and class B is derived from class A. Therefore, the correct description is "Class A has all the members of class B".

Learn more about Class:

https://brainly.com/question/17001900

#SPJ1

The parental control service is experiencing technical difficulties.

Answers

The parental control service is experiencing technical difficulties when they can be overridden easily.

What is a Parental Control system?

Parental controls are known to be features or software that are said to be in a system that hinders one from been able to view some content online.

It is known to be a feature that helps parent to be able to look and restrict what their children can do online. When the block and filter that is used in websites and content can be easily overridden, then the parental control service may be experiencing technical difficulties.

Learn more about parental control from

https://brainly.com/question/6646156

Beginning in cell B21, complete the series of substitution values ranging from $35 to $45 in increments of $2.50 vertically down column B.

Answers

In order to complete the series of substitution values from $35 to $45 in increments of $2.50, follow these steps:

Input $35 in B21.Highlight B21 to B26.Go to the Home tab. Go to the Editing ribbon. Click on Fill. Click on Series. Step Value = 2.50Stop Value = 45.Click Okay.

How can you complete a series of Substitution values?

First input the value you are to start with in the cell you are to start with. In this case that means putting $35 in Cell B21.

Highlight B21 to B26 and then go to the Home tab. Go to the Editing ribbon at the bottom right and click on Fill. Then go to Series and input the step value as 2.50 and the stop value as 45. Click okay and the range will appear.

Find out more on spreadsheet functions at https://brainly.com/question/1395170.

What is the difference between a loop and a function?

Answers

Big difference
Loops allow you to execute code multiple times while a condition is true
Functions allow you to “call” a snippet of code whenever you want, and you can pass it arguments that could affect the data it returns
Simple definition
A loop is a code that will repeat again and again until the condition is true. If the condition become false the loop will stop executing.

A function is a code that will do a particular task when you call it. First you need to define a function which is known as function definition. And whenever you want to use it then you have to call the function.
If you don’t call the function then it will not work what you want.

Hope you like this

Does technology need to be kept alive?

Answers

Answer:

Explanation:

well we don’t need it we just use it =) hope it helps

Answer:

Probably not because people before us have lived without it.

Explanation:

But of course technology is extremely helpful!

Hopefully this helps you

- Matthew <3

List the do’s and don’ts of secure online interactions.

Answers

Answer:

The answer is below

Explanation:

The "dos" are safe practice's website users should always do to security against potential hackers in online interactions. rovide themselves

Hence, are the "dos" based on the options listed.

1. Use a long password with mixed characters

2. Use antivirus and spyware protection

3. Don't write your password down and leave it where others can find it

4. Go through the terms and conditions, and privacy policies of social networking and other

websites that you access. On the other hand, the "don'ts" are the practices a website user or visitor should avoid doing to

provide themselves a form of security against potential hackers in online interactions.

Hence, are the "don'ts" based on the options listed.

1. Keep yourself logged in when you leave your computer

2. Share your password with your friends 3. Retain cookies every time you visit a website.

A programmer wrote the following code that should simulate rolling a die 10 times and determining the number of times an even number appears. The code below has an error. Which line needs to be modified to correct the error

Answers

Line 1 is that should simulate rolling a die 10 times and determining the number of times an even number appears and line 1 is needs to be modified to correct the error.

What is line number?

A line number is a means of specifying a specific sequence of characters in a text file in computing.

The most typical way for allocating numbers to lines is to give each one a distinct number, beginning with 1 for the first line and increasing by 1 for each subsequent line.

Thus, Line 1 needs to rectify to correct the error.

For more details about line number, click here

https://brainly.com/question/14452235

#SPJ1

An administrator deploys a basic network intrusion detection (NID) device to block common patterns of attacks. What detection method does this device use

Answers

The type of detection method that this basic network intrusion detection (NID) device use is Signature-based.

What is signature-based detection?

A Signature-based detection is known to be a term that is often referenced to cybersecurity.

Note that it involves the use of footprints to recognize any form of malware. It is known that have programs, apps, software, etc., often consist of a digital footprint and as such the use of this detection can be able to identify the attack.

Learn more about  network intrusion from

https://brainly.com/question/26199042

Other Questions
I need helpppp, someone please help 30 POINTS FOR ANSWERS Calvinism ideas of clergy members choosing the clergy influences people to think..? Find the surface area of the cylinder (please help) PLS HELP IM BEING TIMEDJustin is giving Bernie, an elderly patient, a therapeutic backrub. Bernie has two sore arms. Justin places Bernie in a side-lying position, and he places a bath towel on the bed along Bernies back. Justin then takes warm lotion and places it on Bernies lower back. Justin used long, upward strokes to move from the buttocks to the shoulders. Based on this part of the backrub, which best explains the procedure?a. Justin should have moved from his shoulders to his buttocks, and Bernie should have been put in the prone position.b. Bernie should have been put in the prone position, and he should have been told about the lotion being wet and cool. c. Bernie should have been told about the lotion being wet and cool, and Justin should have used short, downward strokes. d. Justin should have used short, downward strokes, and he should have moved from Bernies shoulders to his buttocks. Week 3: Linear Functionstranet started riding her bicycle 5 meters from her house. Her friends used a table to record the distancetraveled by Janet in 1-second intervals.Time (seconds)0123456Distance (meters)56.589.51112.514Which equation represents the time, x, and distance, y, as shown in the table?A. y = 1.5x 5B. y = 5x - 1.5C. y = 5x + 1.5D. y = 1.5x + 5 Deposition of calcium and phosphorus in the bones is influenced by:. Now, use your paragraph to inform frankie about his options. in this paragraph, describe the economic concepts that you used to create your outline. explain in greater detail how each of these concepts will help frankie to make a decision to buy or not to buy a new pair of shoes. What creates the van Allen belts Which is a characteristic of an upstander? action-orientedpassivecowardlyquiet What is 1,580,391 to the nearest hundred thousand Why do you think there is often a connection between the types of economic activities in a country and its level of economic development? 50 points each question. Please help. How do I solve? You have 24 offspring, 23 with black fur and 1 with white fur. What was the genotype of the wild mouse? write the name of the figure in the box that describes its properties. Some names will be used more than once. words: 1. rectangle2. rhombus3. sqaure A group of citizens has joined an organization that works to preserve state parks. The state is considering budget cuts, and the legislature wants to give less money to the state parks. Which of the following would be an effective way for the organization to try to stop the legislature from giving less money to the state parks? A. The organization can shut down the state parks and prevent people from using them until they are properly funded. B. The organization can get people to sign a petition that expresses their opposition to the funding cuts. C. The organization can tell the state that its members will refuse to pay taxes if funding for the state parks is cut. D. The organization can threaten to impeach all of the legislators who don't vote in favor of the state parks. Eight-year-old Roberto knows that all dogs bark. His neighbor has a dog named Spot, and he concludes that Spot barks. Roberto's ability to make this conclusion is an example of Part of your companys accounting database was destroyed when godzilla attacked the city. you have been able to gather the following data from your files. reconstruct the remaining information using the available data. all of the raw material purchased during the period was used in production. how is the whale skeleton symbolic in the deep The equation y= x-3 describes how the variables x and y are related why did herbert spencers theories on social darwinism appeal to imperialists?