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
Murljashka [212]
3 years ago
8

Given two alphabet strings str1 and str2. You can change the characters in str1 to any alphabet characters in order to transform

str1 to str2. One restriction is, in each operation, you should change all the same characters simultaneously. What's more, you may use another special character * if necessary, which means during each operations, you may change the same alphabet characters to *, or change all * to a specific character. Please note that "turn the same characters to *" and "turn all * to a specific character" both take exact one operation.
Engineering
1 answer:
Keith_Richards [23]3 years ago
6 0

Answer:

Explanation:

5

You might be interested in
Why do computers use 1 and 0
tangare [24]

I like ya cut g

Explanation:

bonK no Uhm

6 0
3 years ago
Read 2 more answers
Whats the best way to find the load capacity of a crane
aleksklad [387]
Measure geometric components
The standard calculation for maximum crane capacity is (r)(hC)/100.
R = Radius between the ground and load.
hC = Lifting height multiplied by the capacity.
5 0
3 years ago
Design a half-wave recti er which provides a peak voltage of 15 V, and anaverage voltage of 3.8 V when driven by a 120 V (rms) a
nirvana33 [79]

Answer:

You need a 120V to 24V commercial transformer  (transformer 1:5), a 100 ohms resistance, a 1.5 K ohms resistance and a diode with a minimum forward current of 20 mA (could be 1N4148)

Step by step design:

  1. Because you have a 120V AC voltage supply you need an efficient way to reduce that voltage as much as possible before passing to the rectifier, for that I recommend a standard 120V to 24V transformer.  120 Vrms = 85 V and 24 Vrms = 17V = Vin
  2. Because 17V is not 15V you still need a voltage divider to step down that voltage, for that we use R1 = 100Ω and R2 = 1.3KΩ. You need to remember that more than 1 V is going to be in the diode, so for our calculation we need to consider it. Vf = (V*R2)/(R1+R2), V = Vin - 1 = 17-1 = 16V and Vf = 15, Choosing a fix resistance R1 = 100Ω and solving the equation we find R2 = 1.5KΩ
  3. Finally to select the diode you need to calculate two times the maximum current and that would be the forward current (If) of your diode. Imax = Vf/R2 = 10mA and If = 2*Imax = 20mA

Our circuit meet the average voltage (Va) specification:

Va = (15)/(pi) = 4.77V considering the diode voltage or 3.77V without considering it

6 0
4 years ago
(40 points) Program the following sorting algorithms: InsertionSort, MergeSort, and QuickSort. There are 9 test les uploaded for
babunello [35]

Answer:

Explanation:

MERGE SORT

#include<stdlib.h>

#include<stdio.h>

#include<string.h>

void merge(int arr[], int l, int m, int r)

{

int i, j, k;

int n1 = m - l + 1;

int n2 = r - m;

 

int L[n1], R[n2];

for (i = 0; i < n1; i++)

L[i] = arr[l + i];

for (j = 0; j < n2; j++)

R[j] = arr[m + 1+ j];

i = 0;

j = 0;

k = l;

while (i < n1 && j < n2)

{

if (L[i] <= R[j])

{

arr[k] = L[i];

i++;

}

else

{

arr[k] = R[j];

j++;

}

k++;

}

while (i < n1)

{

arr[k] = L[i];

i++;

k++;

}

while (j < n2)

{

arr[k] = R[j];

j++;

k++;

}

}

void mergeSort(int arr[], int l, int r)

{

if (l < r)

{

int m = l+(r-l)/2;

mergeSort(arr, l, m);

mergeSort(arr, m+1, r);

merge(arr, l, m, r);

}

}

void printArray(int A[], int size)

{

int i;

for (i=0; i < size; i++)

printf("%d ", A[i]);

printf("\n");

}

int main()

{

int arr[1000] = {0};

int arr_size =0;

int data;

char file1[20];

strcpy(file1,"data.txt");

FILE *fp;

fp = fopen(file1,"r+");

if (fp == NULL) // if file not opened return error

{

perror("Unable to open file");

return -1;

}

else

{

fscanf (fp, "%d", &data);    

arr[arr_size]=data;

arr_size++;

while (!feof (fp))

{  

fscanf (fp, "%d", &data);  

arr[arr_size]=data;

arr_size++;    

}

}

printf("Given array is \n");

printArray(arr, arr_size);

mergeSort(arr, 0, arr_size - 1);

printf("\nSorted array Using MERGE SORT is \n");

printArray(arr, arr_size);

return 0;

}

3 0
3 years ago
Freeeee pointssssssssssss
Annette [7]

Answer:thx

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • The components of an electronic system dissipating 90 W are located in a 1-m-long circular horizontal duct of 15-cm diameter. Th
    11·1 answer
  • Show 2 reasons each on how Netflix shows a humane design and an addictive design.
    10·1 answer
  • Rearrange the formula to make “u” the subject. <br><br> v - u<br> ——— = t<br> a
    15·1 answer
  • The assembly consists of two blocks A and B, which have a mass of 20 kg and 30 kg, respectively. Determine the distance B must d
    14·2 answers
  • A device that helps increase field worker productivity by providing reliable location and time
    13·1 answer
  • PLEASE HURRY!!!
    6·2 answers
  • Calculate the current in the 8-W resistor of Figure below by using Thevenin’s theorem. What will be its value of connections of
    10·1 answer
  • Is it realistic to build a tower with only 3 sheets of paper? why or why not
    14·2 answers
  • 1. Static holding is when you hold the same posture for long periods of time.
    11·1 answer
  • The most important reason to wear your seat belt is to protect you from:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!