1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VLD [36.1K]
3 years ago
12

How to do assignment 5 on edhesive

Computers and Technology
1 answer:
s2008m [1.1K]3 years ago
6 0

Answer:

//To pass in a string, and pass in a pivot string, and at that moment print in obligatory sequence, the string after pivot string till last as first string, and published beforehand the left slice of string.

import java.util.Scanner;

public class Main {

public static void main(String args[]) {

  Scanner s2 = new Scanner(System.in);

  System.out.println("Enter the parent String:");

  String f2 = s2.nextLine();

  System.out.println("Enter pivot(child string):");

  String piv1 = s2.nextLine();

  int start2 = f2.indexOf(piv1);

  int end2 = piv1.length()+start2;

  if (start2 == -1){

    System.out.println("Error: child string(Pivot) not discovered.");

    return;

}

String first2 = f2.substring(0,start2-1);

  String second2 = f2.substring(end2);

if (f2.charAt(start2-1)==' '){

System.out.println(second2 + " " + piv1 + " " + first2);

return;

}

System.out.println(second2 + piv1 + first2);

}

}

Explanation:

Please check the answer section.

You might be interested in
Luis is cloud-based( microsoft bot framework). true false
zhenek [66]

True

Language Understanding Intelligence Service (LUIS) is a cloud-based API service and is one of the many Cognitive Services provided by Microsoft. LUIS applies custom machine-learning intelligence to a user’s natural language text to predict overall meaning and pull out detailed and relevant information. Using LUIS, we can use REST APIs to extract important information like phrases from any sentence.


5 0
4 years ago
Read 2 more answers
A set of object that share a common structure and common behavior in database is called ​
Tcecarenko [31]
An Object Class. Hopefully this answer is right.
3 0
3 years ago
What type of tests is suitable for automated testing?
Shtirlitz [24]
Layering test
input-output test
UI regression test
unit test
integration test
code analysis
production logging and monitoring

8 0
3 years ago
Which is an example of an binary number?
Liula [17]
The second one
01111
This is because a computer uses binary and only understands two digits which consit of 1 and 0
8 0
3 years ago
Read 2 more answers
Thirty percent of a magazine's subscribers are female. A random sample of 50 subscribers Answer the following questions using Ex
Ann [662]

Based on the mean of the subscribers, the sample size, and the standard deviation, the probability of females being at most 0.25 is 0.2202.

The probability that they are between 0.22 and 0.28 is 0.2703.

The probability that they are within 0.03 of the population proportion is 0.3566.

<h3>What is the probability that they are at most 0.25?</h3>

Using Excel, we shall assume that the distribution is normally distributed.

We can therefore use the NORM.DIST function:


=NORM.DIST(0.25,0.3,0.0648,TRUE)

= 0.2202

<h3 /><h3>What is the probability that they are between 0.22 and 0.28?</h3>

=NORM.DIST(0.28,0.3,0.0648,TRUE) - NORM.DIST(0.22,0.3,0.0648,TRUE)

= 0.2703

<h3>What is the probability that they are within 0.03 of the population proportion?</h3>

X high = 0.30 + 0.03

= 0.33

X low = 0.30 - 0.03

= 0.27

= NORM.DIST(0.33,0.3,0.0648,TRUE) - NORM.DIST(0.27,0.3,0.0648,TRUE)

= 0.3566.

Find out more on probability at brainly.com/question/1846009.

8 0
2 years ago
Other questions:
  • Which of the following is not a standard method called as partof the JSP life cycle?
    5·1 answer
  • An online service provider provides its users with hosted​ computers, an operating​ system, and a database management system​ (D
    6·1 answer
  • Which of the following resources is an example of a web-based application?
    15·1 answer
  • Most licensing agencies offer an orientation meeting for applicants who want to obtain licensing for a child care facility or a
    12·2 answers
  • A user on a home network needs to boost the signal of the wireless router. What should the user purchase to accomplish this?
    14·1 answer
  • What kind of a bug is 404 page not found
    10·2 answers
  • Which of the following is productivity strategy for collaboration?
    6·1 answer
  • A void function can return any value. TRUE FALSE
    8·1 answer
  • H. What is recycle bin?<br>-&gt;​
    10·1 answer
  • In what ways can information be slanted in a news report?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!