Questions
A refrigerator removes heat from a refrigerated space at -6°C and rejects it to an environment...

A refrigerator removes heat from a refrigerated space at -6°C and rejects it to an environment at 30°C. If the temperature in the cooled area is reduced to - 18°C, determine the minimum percentage increase in the work required for the same amount of energy from which the Carnot refrigerator is removed.

a. 53

b. 33

c. 93

d. 13

e. 73

In: Mechanical Engineering

Probability can be defined as: the likelihood that the researcher would reject the null hypothesis. the...

Probability can be defined as:

the likelihood that the researcher would reject the null hypothesis.

the number of times a specific even can occur relative to the total number of times that any event can occur.

the total number of possible outcomes minus the number of ways a particular outcome may occur.

the total number of ways a possible outcome can occur.

In: Statistics and Probability

How many moves are required to solve the Towers of Hanoi problem when we have 3...

How many moves are required to solve the Towers of Hanoi problem when we have 3 disks?

Group of answer choices

5

6

8

4

7

After the following statements execute, what item is at the front of the queue?


QueueInterface<String> zooDelivery = new LinkedQueue<>();
zooDelivery.enqueue("lion");
zooDelivery.enqueue("tiger");
zooDelivery.enqueue("cheetah");
String next = zooDelivery.dequeue();
next = zooDelivery.dequeue();
zooDelivery.enqueue("jaguar");
zooDelivery.enqueue("cat");

Group of answer choices

"lion"

"tiger"

"cheetah"

"jaguar"

"cat"

When a recursive method does not include a base case, calling the method results in

Group of answer choices

A. iterative recursion

B. stack overflow

C. infinite recursion

D. A and B

E. B and C

In StackInterface, the method pop()

Group of answer choices

removes and returns the item that was pushed last on the stack

returns the item that was pushed last on the stack but does not remove it

removes and returns the item that was pushed first on the stack

returns the item that was pushed first on the stack but does not remove it

None of the above

In: Computer Science

Write a C++ program that uses a de-duplication function that iteratively sanitizes (removes) all consecutive duplicates...

Write a C++ program that uses a de-duplication function that iteratively sanitizes (removes) all consecutive duplicates in a C++ string. Consecutive duplicates are a pair of duplicate English alphabets sitting next to each other in the input string. Example: "AA", "KK", etc., are all consecutive duplicates. This function will internally run as many iterations as needed to remove all consecutive duplicates until there is either no consecutive duplicates left, or the string becomes empty (in which the function returns "Empty" back to the user):

string deduplicate(string input)

Your main() may look like the following, or anything you prefer to put in it as it is not graded:

int main() {
  cout << deduplicate("AABB"); // should output "Empty"
  cout << deduplicate("A"); // "A"
  cout << deduplicate("ABBA"); // should output "Empty"
  cout << deduplicate("AAA"); // "A"
  cout << deduplicate("AKA"); // "AKA" because there is no consecutive pair.
  return 0;
}

-----------------------------------------------------------

Examples:

  • "KCCK" -> first iteration results in "KK" by removing "CC" as consecutive duplicates -> second iteration starts with "KK" as consecutive duplicates hence removed. Function returns "Empty".
  • "ZZZ" -> first iteration results in "Z" by removing the first "ZZ". There is nothing to be removed after that. Function returns "Z".
  • "KKCCD" -> first iteration removes "KK" resulting in "CCD" -> second iteration removes "CC" resulting in "D". There is nothing left to be removed. Function return "D".

-----------------------------------------------------------

Constraints/Assumptions:

  • Input string consists of only uppercase English alphabets, "A" - "Z".
  • Input string consists of at least 1 English alphabet.
  • Input string consists of at most 100 alphabets.
  • Function returns the non-reducible string.
  • If the reduced string is empty, function returns the string "Empty".

In: Computer Science

A quantity of 2.00 g of calcium carbide is reacted at 500.0 K with excess of...

A quantity of 2.00 g of calcium carbide is reacted at 500.0 K with excess of liquid water in a closed container fitted with a piston. The only two products of this reaction are ethyne and calcium hydroxide calculate the work done by the production of C2H2 gas against an external pressure assume the reaction proceeds until the pressure of the gas produced equals the external pressure (atmospheric pressure). Assume that the reaction proceeds until the pressure of the gas produced equals the external pressure.

In: Chemistry

A Carnot heat engine within a piston cylinder has 10 kg of air as the working...

A Carnot heat engine within a piston cylinder has 10 kg of air as the working fluid and operates between 1000 K and 350 K. During the heat addition process the pressure changes by a factor of 2.5. The volume at the end of the isentropic compression process is 5m^3. Determine the pressure at each state in kPa and the net heat of the cue in KJ assuming Constant Heats at 300 K. Draw a P-v and T-s diagram

In: Mechanical Engineering

A piston–cylinder assembly contains 2 lb of water, initially at 100 lbf/in.2 and 600°F. The water...

A piston–cylinder assembly contains 2 lb of water, initially at 100 lbf/in.2 and 600°F. The water undergoes two processes in series: a constant-pressure process followed by a constant volume process. At the end of the constant-volume process, the temperature is 300°F and the water is a two-phase liquid–vapor mixture with a quality of 50%. Neglect kinetic and potential energy effects. Determine the work and heat transfer for each process, all in Btu.

In: Mechanical Engineering

The inside diameter of a randomly selected piston ring is a random variable with mean value...

The inside diameter of a randomly selected piston ring is a random variable with mean value 15 cm and standard deviation 0.07 cm. Suppose the distribution of the diameter is normal. (Round your answers to four decimal places.)

(a) Calculate

P(14.99 ≤ X ≤ 15.01)

when n = 16.

P(14.99 ≤ X ≤ 15.01)

=

(b) How likely is it that the sample mean diameter exceeds 15.01 when n = 25?

P(X ≥ 15.01)

=

In: Statistics and Probability

A mass of 0.3 kg of saturated refrigerant-134a is contained in a piston-cylinder device at 240...

A mass of 0.3 kg of saturated refrigerant-134a is contained in a piston-cylinder device at 240 kPa.
Initially, 70 percent of the mass is in the liquid phase. Now heat is transferred to the refrigerant at
constant pressure until the cylinder contains vapor only.
(a) show the process on a P-v and T-v diagrams with respect to saturation lines. Determine;
(b) the volume occupied by the refrigerant initially,
(c) the work done, and
(d) the total heat transfer.

In: Mechanical Engineering

Please perform the following tasks using a Timer Control: When an NO Push Button (I:0/0) is...

Please perform the following tasks using a Timer Control:

  1. When an NO Push Button (I:0/0) is pressed (I0) and released, a Pilot Light (O:0/0) will be on and after 7 seconds (T4:0), a single-active cylinder will be pushed forward.
  2. The piston will remain at its position for another 5 seconds (T4:1) and then it will automatically retract. The pilot light will be off and the timer will also be automatically reset. The whole cycle can then be repeated.

In: Computer Science