Answer:
see explaination
Explanation:
function [] =
inverse(A,B)
da = det(A);
disp("The det of A is");
disp(da);
inva = inv(A);
disp("The inverse of A is");
disp(inva);
x = inva*B;
disp("The value of X is");
disp(x);
rk = rank(A);
disp("The rank of X is");
disp(rk);
Di = eig(A);
disp("The eigen values of A is");
disp(Di);
[V,Di] = eig(A);
disp("The eigen vectors of A are (Each column represents one column vector)");
disp(V);
end
A = [1,2;4,5];
B = [1,2;4,5];
inverse(A,B);
%ab = [num2str(t)," ",num2str(dx)," ",num2str(dy)];
%disp(ab);
Answer:
numAccounts = SavingsAccount.numberOfAccounts
Explanation:
In object oriented programming, when you have created an object of class, you can create several instances (objects) from that class by referencing the className.classFeild. In this instance SavingsAccount is the class name and
numberOfAccounts is a feild (or data member). to create a new numAccount, we use the syntax as above in the answer
In python:
age = float(input("How old are you? "))
weight = float(input("How much do you weigh? "))
heart_rate = float(input("What's your heart rate? "))
time = float(input("What's the time? "))
print("The calories burned for men is {}, and the calories burned for women is {}.".format(
((age * 0.2017) - (weight * 0.09036) + (heart_rate * 0.6309) - 55.0969) * (time / 4.184),
((age * 0.074) - (weight * 0.05741) + (heart_rate * 0.4472) - 20.4022) * (time / 4.184)))
This is the program.
When you enter 49 155 148 60, the output is:
The calories burned for men is 489.77724665391963, and the calories burned for women is 580.939531548757.
Round to whatever you desire.