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
tekilochka [14]
3 years ago
9

Sort the following alphabets using MergeSort and give required steps. [2 Marks]

Engineering
1 answer:
OlgaM077 [116]3 years ago
4 0

Answer:

I'm afraid i can't visualise it to you but visit the site below to help you out <3

Explanation:

https://opendsa-server.cs.vt.edu/embed/mergesortAV

You might be interested in
In a food processing facility, a spherical container of inner radius r1 = 40 cm, outer radius r2 = 41 cm, and thermal conductivi
Rashid [163]

Answer:

attached below

Explanation:

5 0
3 years ago
What does snow fall from?
Klio2033 [76]

Answer:

Clouds

Explanation:

It is created by trapped dust and water.

4 0
3 years ago
C++ - Green Crud Fibonacci programThe following program is to be written with a loop. You are to write this program three times
Fynjy0 [20]

Answer:

Below is the required code:

Explanation:

Using for loop

#include <iostream>

using namespace std;

int main()

{

    //Initial crud size

    int init = 0;

    int newCrud;

    int next=0;

    //Number of days to simulate

    int no_days;

    int day;

    cout << "Enter initial amount of green crud: ";

    cin >> newCrud;

    cout << "Enter number of days to simulate: ";

    cin >> no_days;

    for (day = 10; day<=no_days; day++)

    {

         if (day % 10 == 0)

         {

             next = newCrud + init;

         }

             newCrud = init;

             init = next;

    }

    if (no_days < 5)

    cout << "\nCrud reproduce only after 5 days minimum.Hence the current amount is "

    << newCrud << " pounds.";

    else

    cout << "On day " << no_days << " you have " << init

    << " pounds of green crud." << endl;

    cout << "\nWould you like to continue? (y or n): ";

    cin >> ans;

         return 0;

}

Output:

         Enter initial amount of green crud: 5

         Enter number of days to simulate: 220

    On day 220 you have 10485760 pounds of green crud.

Using while loop

Program:

#include <iostream>

using namespace std;

int main()

{

    char ans='y';

    while (ans == 'Y' || ans == 'y')

    {

         //Initial crud size

         int init = 0;

         int newCrud;

         int next=0;

         //Number of days to simulate

         int no_days;

         int day;

         cout << "Enter initial amount of green crud:

         ";

         cin >> newCrud;

         cout << "Enter number of days to simulate:

         ";

         cin >> no_days;

         for (day = 10; day<=no_days; day++)

         {

             if (day % 10 == 0)

             {

                  next = newCrud + init;

             }

                  newCrud = init;

                  init = next;

         }

         if (no_days < 5)

         cout << "\nCrud reproduce only after 5 days

         minimum.Hence the current amount is "

         << newCrud << " pounds.";

         else

         cout << "On day " << no_days << " you have "

         << init

         << " pounds of green crud." << endl;

         cout << "\nWould you like to continue? (y or

         n): ";

         cin >> ans;

    }

    return 0;

}

Output:

Enter initial amount of green crud: 5

Enter number of days to simulate: 220

On day 220 you have 10485760 pounds of green crud.

Would you like to continue? (y or n): y

Enter initial amount of green crud: 5

Enter number of days to simulate: 225

On day 225 you have 10485760 pounds of green crud.

Using do while loop

Program:

#include <iostream>

using namespace std;

int main()

{

    char ans;

    do

    {

         //Initial crud size

         int init = 0;

         int newCrud;

         int next=0;

         //Number of days to simulate

         int no_days;

         int day;

         cout << "Enter initial amount of green crud: ";

         cin >> newCrud;

         cout << "Enter number of days to simulate: ";

         cin >> no_days;

         for (day = 10; day<=no_days; day++)

         {

             if (day % 10 == 0)

             {

                  next = newCrud + init;

             }

                  newCrud = init;

                  init = next;

         }

         if (no_days < 5)

         cout << "\nCrud reproduce only after 5 days

         minimum.Hence the current amount is "

         << newCrud << " pounds.";

         else

         

         cout << "On day " << no_days << " you have " <<

         init << " pounds of green crud." << endl;

         cout << "\nWould you like to continue? (y or n):

         ";

         cin >> ans;

    } while (ans == 'Y' || ans == 'y');

    return 0;

}

Output:

Enter initial amount of green crud: 5

Enter number of days to simulate: 220

On day 220 you have 10485760 pounds of green crud.

Would you like to continue? (y or n): y

Enter initial amount of green crud: 5

Enter number of days to simulate: 225

On day 225 you have 10485760 pounds of green crud.

7 0
3 years ago
The dam cross section is an equilateral triangle, with a side length, L, of 50 m. Its width into the paper, b, is 100 m. The dam
lisabon 2012 [21]

Answer:

Explanation:

In an equilateral trinagle the center of mass is at 1/3 of the height and horizontally centered.

We can consider that the weigth applies a torque of T = W*b/2 on the right corner, being W the weight and b the base of the triangle.

The weigth depends on the size and specific gravity.

W = 1/2 * b * h * L * SG

Then

Teq = 1/2 * b * h * L * SG * b / 2

Teq = 1/4 * b^2 * h * L * SG

The water would apply a torque of elements of pressure integrated over the area and multiplied by the height at which they are apllied:

T1 = \int\limits^h_0 {p(y) * sin(30) * L * (h-y)} \, dy

The term sin(30) is because of the slope of the wall

The pressure of water is:

p(y) = SGw * (h - y)

Then:

T1 = \int\limits^h_0 {SGw * (h-y) * sin(30) * L * (h-y)} \, dy

T1 = \int\limits^h_0 {SGw * sin(30) * L * (h-y)^2} \, dy

T1 = SGw * sin(30) * L * \int\limits^h_0 {(h-y)^2} \, dy

T1 = SGw * sin(30) * L * \int\limits^h_0 {(h-y)^2} \, dy

T1 = SGw * sin(30) * L * \int\limits^h_0 {h^2 - 2*h*y + y^2} \, dy

T1 = SGw * sin(30) * L * (h^2*y - h*y^2 + 1/3*y^3)(evaluated between 0 and h)

T1 = SGw * sin(30) * L * (h^2*h - h*h^2 + 1/3*h^3)

T1 = SGw * sin(30) * L * (h^3 - h^3 + 1/3*h^3)

T1 = 1/3 * SGw * sin(30) * L * h^3

To remain stable the equilibrant torque (Teq) must be of larger magnitude than the water pressure torque (T1)

1/4 * b^2 * h * L * SG > 1/3 * SGw * sin(30) * L * h^3

In an equilateral triangle h = b * cos(30)

1/4 * b^3 * cos(30) * L * SG  > 1/3 * SGw * sin(30) * L * b^3 * (cos(30))^3

SG > SGw * 4/3* sin(30) * (cos(30))^2

SG > 1/2 * SGw

For the dam to hold, it should have a specific gravity of at leas half the specific gravity of water.

This is avergae specific gravity, including holes.

6 0
2 years ago
How is the fuel introduced into the Diesel engine?
Ugo [173]

Answer:

diesel fuel is pumped at high pressure to the injectors which are responsible for entering the fuel into the combustion chamber,

when the piston is at the top the pressure is so high that it explodes the fuel (diesel) that results in a generation of mechanical power

5 0
3 years ago
Other questions:
  • A tank contains liquid nitrogen at -190℃ is suspended in a vacuum shell by three stainless steel rods 0.80 cm in diameter and 3
    8·1 answer
  • The manufacturer of a 1.5 V D flashlight battery says that the battery will deliver 9 {\rm mA} for 37 continuous hours. During t
    10·1 answer
  • function summedValue = SummationWithLoop(userNum) % Summation of all values from 1 to userNum summedValue = 0; i = 1; % Write a
    11·1 answer
  • Who tryna play fortnite with me
    11·2 answers
  • A 350 m^3 retention pond that holds rainwater from a shopping mall is empty at the beginning of a rainstorm. The flow rate out o
    7·1 answer
  • If 65 gallons of hydraulic oil weighs 350lb, what is the specific weight of the oil in lb/ft^3?
    14·1 answer
  • Why does an aeroplane smoke in the air​
    14·1 answer
  • Describe how to use cleaning tools and equipment safely and properly
    6·1 answer
  • What do you think of web 3.0? do you think it will be realized someday in the future?​
    5·1 answer
  • In the situation shown below, what would the Moon look like from Earth? Sun, Earth and Moon Four Moon Views A. View A B. View B
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!