Answer:
Explanation:
% Clears variables and screen
clear; clc
% Asks user for input
n = input('Total number of objects: ');
r = input('Size of subgroup: ');
% Computes and displays permutation according to basic formulas
p = 1;
for i = n - r + 1 : n
p = p*i;
end
str1 = [num2str(p) ' permutations'];
disp(str1)
% Computes and displays combinations according to basic formulas
str2 = [num2str(p/factorial(r)) ' combinations'];
disp(str2)
=================================================================================
Example: check
How many permutations and combinations can be made of the 15 alphabets, taking four at a time?
The answer is:
32760 permutations
1365 combinations
==================================================================================
Question:
The question is not complete. See the complete question and the answer below.
A well that pumps at a constant rate of 0.5m3/s fully penetrates a confined aquifer of 34 m thickness. After a long period of pumping, near steady state conditions, the measured drawdowns at two observation wells 50m and 100m from the pumping well are 0.9 and 0.4 m respectively. (a) Calculate the hydraulic conductivity and transmissivity of the aquifer (b) estimate the radius of influence of the pumping well, and (c) calculate the expected drawdown in the pumping well if the radius of the well is 0.4m.
Answer:
T = 0.11029m²/sec
Radius of influence = 93.304m
expected drawdown = 3.9336m
Explanation:
See the attached file for the explanation.
Answer:
a) The final equilibrium temperature is 83.23°F
b) The entropy production within the system is 1.9 Btu/°R
Explanation:
See attached workings
Answer:
def extract_word_with_given_letter(sentence, letter):
words = sentence.split()
for word in words:
if letter in word.lower():
return word
return ""
# Testing the function here. ignore/remove the code below if not required
print(extract_word_with_given_letter('hello HOW are you?', 'w'))
print(extract_word_with_given_letter('hello how are you?', 'w'))