Answer:
See the below the answer written in Matlab
Explanation:
function inches=feetToInches(feet)
prompt='enter the value of feet in digits';
feet=input(prompt)% ask for the value in feet that needs to be converted to inches
inches =feet*12; % converts feet to inches
x=['the value in inches is: ',num2str(inches)];
disp(x) %display the result of the convertion
end