Answer:
Explanation gives the answer
Explanation:
% Using MATLAB,
% Matlab file : fieldtovar.m
function varargout = fieldtovar(S)
% function that accepts single structure as input, assigning each
% of the field values to user-defined variables
fields = fieldnames(S); % get the field names of the input structure
% check if number of user-defined variables and number of fields in
% structure are equal
if nargout == length(fields)
% if equal assign each value of structure to user-defined varable
for i=1:nargout
varargout{i} = getfield(S,fields{i});
end
else
% if not equal display an error message
error('The number of output variables does not equal the number of fields');
end
end
%This brings an end to the program
Com·ma
/ˈkämə/
NOUN
1. a punctuation mark (,) indicating a pause between parts of a sentence. It is also used to separate items in a list and to mark the place of thousands in a large numeral.
2. a minute interval or difference of pitch.
Answer:
See explaination
Explanation:
#include <iostream>
#include<string.h>
using namespace std;
bool isPalindrome(string str, int lower, int upper){
if(str.length() == 0 || lower>=upper){
return true;
}
else{
if(str.at(lower) == str.at(upper)){
return isPalindrome(str,lower+1,upper-1);
}
else{
return false;
}
}
}
int main(){
string input;
cout<<"Enter string: ";
cin>>input;
if(isPalindrome(input,0,input.length()-1)){
cout<<input<<" is a palindrome"<<endl;
}
else{
cout<<input<<" is NOT a palindrome"<<endl;
}
return 0;
}
Answer:
endurance length is 236.64 MPa
Explanation:
data given:
d = 37.5 mm
Sut = 760MPa
endurance limit is
Se = 0.5 Sut
= 0.5*760 = 380 MPa
surface factor is
Ka = a*Sut^b
where
Sut is ultimate strength
for AISI 1040 STEEL
a = 4.51, b = -0.265
Ka = 4.51*380^{-0.265}
Ka = 0.93
size factor is given as
Kb =1.29 d^{-0.17}
Kb = 0.669
Se = Sut *Ka*Kb
= 380*0.669*0.93
Se = 236.64 MPa
therefore endurance length is 236.64 MPa
Answer:
The one end of a hollow square bar whose side is (10+N/100) in wit
Explanation: