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
What is a feature of readable code?
mamaluj [8]

Answer:

sorry for the wait but the answer is b

Explanation:

5 0
3 years ago
Read 2 more answers
Knowing how to develop an outline well is very easy, and most students can create quality outlines in one attempt. Please select
vovangra [49]

Its False, just took the test I chose true buh it told me I was wrong so iss gotta be false.

8 0
4 years ago
Read 2 more answers
1. Write the name of the tab, command group, and icon that is used to sort information in a Word document.
OleMash [197]

Answer:

Sort Option is a best way to organize a number of terms say names alphabetically or if needed numerically. It is used mostly in making lists, tables, records etc.

(Using word version onward from 2016 like  2007/2010/2013/2016/2019)

For locating sort option in Classic Menu (if downloaded):

  • Click on Menus tab
  • Select Table from the bar
  • From the drop down click sort button having an arrow from top to bottom with A-Z(vertical) notation.

In case you have not downloaded Classic menu:

Sort option is present in the paragraph group under the Home tab.

1. Click on Home tab.

2. Figure out paragraph group.

3. There will be a sort button with an

  icon, having an arrow from top to

   bottom with notation A-Z (vertically).

5 0
3 years ago
Write a statement to declare and initialize an array of int named denominations that contains exactly six elements. Your declara
lawyer [7]

Answer:

// here is statement in C++ to declare and initialize an array.

int denominations[]={1, 5, 10, 25, 50, 100};

Explanation:

In C++, an array can be declare and initialize in a single statement.Syntax to declare and initialize an array in C++ is type <type> <name>[]={val1,vale2...valn}. Here first literal is type of array and second is name of the array.And in the {} braces value of the array.In the above statement type is integer and name of the array is "denominations" and the values are 1,5,10,25,50,100.

//here is implementation in C++.

// include headers

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// declare and initialize array

int denominations[]={1, 5, 10, 25, 50, 100};

return 0;

}

7 0
4 years ago
What is an operating system
AfilCa [17]
The operating system is the most basic program of a computer which needs other program in order to function and run.

Hope this helps !

Photon
5 0
3 years ago
Other questions:
  • Maia notices that her paragraphs are too close to one another. She wants to increase the space. Which arrangement of steps does
    6·2 answers
  • True or False: It is illegal to park in a location that you block or create a hazard for other vehicles.
    11·2 answers
  • allows Internet telephony service providers to deliver telephony services and unified communications applications offering voice
    14·1 answer
  • LAB: Count multiples (EO)
    5·1 answer
  • Which device doesn't have wifi support? option (1) smartphone, (2) network printer, (3) table fan ​
    5·1 answer
  • Can someone help plz, I’d really appreciate it
    7·1 answer
  • While storms could be a cause, power______ are more likely to be caused by disturbances from high-demand equipment in a home or
    8·1 answer
  • On the worksheet, make cell a1 the active cell and then simultaneously replace all occurrences of the value 0. 05 with the value
    12·1 answer
  • compare the two methods of creating table in ms access ( Datasheet view and Design view) which one wouldyou prefer to use to rec
    13·1 answer
  • Please answer........
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!