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
Effectus [21]
3 years ago
6

Consider three strings instr1, instr2 and instr3 having only lowercase alphabets. Identity a string outstr, with the smallest po

ssible length such that when strings instr1, outstr and instr2 are concatenated in the same order instr3 becomes a substring of the concatenated string. Print the smallest possible length of (instr1 + outstr - instr2) satisfying the given criteria. Note: The string outstr can also be an empty string Input Format: The first second and third line contain strings instr1instr2 and instr3 respectively. Read the input from the standard input stream. Output Format: Print the smallest possible length of (instr1 + outstr + instr2) satisfying the given criteria. Print the output to the standard output stream You're Explanati CIAR Sample Output Jusuen that when strings instr 1. outstr and instr2 are concatenated in the same order instr3 becomes a substring of the concatenated string. Print the smallest possible length of (instr. outstr - instr2) satisfying the given criteria
Computers and Technology
1 answer:
soldi70 [24.7K]3 years ago
7 0
10 points is nothing to answer this junk just saying
You might be interested in
Between the div tags below, type the code for a link to the second.html page. Use "Go to the Second Page" as the link text
marysya [2.9K]

A code for a link to the second.html page is given by <div>Go to the Second Page</div>.

<h3>What is a div tag?</h3>

A div tag is an abbreviation for division tag and it can be defined as a type of HTML tag that is designed and developed to break (divide) a webpage into several elements with their respective layout attributes.

In this scenario, a code for a link to the second.html page is given by <div>Go to the Second Page</div>.

<u>Note:</u> "Go to the Second Page" serves as the link text.

Read more on div tag here: brainly.com/question/14075748

#SPJ1

4 0
2 years ago
Which of the following is typically used in a flowchart to indicate a decision?
Vilka [71]
Diamond is typically used in a flowchart or indicate a decision.
6 0
3 years ago
Write a program for a grocery store to calculate the total charge for customers. In the main: Your program should ask customer t
gavmur [86]

Answer:

Hello Joelwestwood! This is a good question to check your knowledge of subrountines and Arrays. Please find the implementation with the explanation below.

Explanation:

The solution can be implemented in a number of languages including C++, Java and Python to name a few. Though the implementation language is not specified in the question, i'll provide you the implementation code in Python and also in Java. Java implementation is a little complex because we need to define an array size to be able to add items to it, whereas Python allows us more flexibility by allowing dynamic size of Array.

JAVA IMPLEMENTATION

import java.util.Scanner;

import java.util.Arrays;

class TotalCharge {

 private static int[] price_array = new int[1];

 public void FillPriceArray(int price) {

   if (price_array.length == 1) {

     price_array[0] = price;

   } else {

     price_array = new int[price_array.length + 1];

     price_array[price_array.length + 1] = price;

   }

 }

 public int[] get_price_array() {

   return price_array;

 }

 public static void main(String args[]) {

   System.out.println("Please enter the total number of items to purchase: ");

   Scanner scan = new Scanner(System.in);

   int price = scan.nextInt();

   if (price <= 20) {

     System.out.println("Items being purchased are less than 20");

   } else {

     System.out.println("Items being purchased are more than 20");

   }

   TotalCharge itemsTotal = new TotalCharge();

   itemsTotal.FillPriceArray(price);

   System.out.println(Arrays.toString(itemsTotal.get_price_array()));

 }

}

PYTHON IMPLEMENTATION

calculate_total_charge.py

def FillPriceArray(price):

 price_array.append(price)

price_array = []

price = raw_input("Please enter the total number of items to purchase: ")

try:

 price = int(price)

 if price <= 20:

   print("Items being purchased are less than 20")

 else:

   print("Items being purchased are more than 20")

 FillPriceArray(price)

 print(price_array)

except ValueError:

 print("Invalid input! Exiting..")

8 0
3 years ago
Which of the following is not a factor that affects productivity?
hjlf

<em>The answer is wireless cellular phones. </em>

<em> </em>

<em>Companies use of wireless cellular phones may vary and majority are considered it as optional. Instead of talking via wireless cellular phones, emails and telephone lines conversation are much advisable for cost-effective and formal type of communication process.</em>

5 0
4 years ago
How many times faster is a computer that measures at
jekas [21]

well Its something soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

6 0
2 years ago
Other questions:
  • What is the central unit of the computer that contains the logic circuitry and carries out the instructions of the computer's pr
    13·1 answer
  • Write a command that will start and run the gedit command in the background.
    8·1 answer
  • What is the output of the following code snippet? double salary = 55000; double cutOff = 65000; double minSalary = 40000; if (mi
    6·1 answer
  • The default ____ for a hyperlink is the folder location and the name of the file to which you will link.
    6·1 answer
  • Sequence encryption is a series of encryptions and decryptions between a number of systems, wherein each system in a network dec
    9·1 answer
  • Linela Insurance needs to hire twenty accountants immediately to support its accounts receivable process. The hiring and trainin
    7·1 answer
  • In order to manage information for a company, your website would need a/an
    6·1 answer
  • What will be displayed after code corresponding to the following pseudocode is run? Main Set OldPrice = 100 Set SalePrice = 70 C
    10·1 answer
  • This is your code.
    9·1 answer
  • What is the database and presentation for files​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!