clc;                                                                                        % clear the Command Window
clear all;                                                                                  % clears all the variables in memory
close all;                                                                                  % close all ports and plots

participant_name = input('What is your name? ','s');                                        % get the participants name
adjacent_side = input('What is the length of the adjacent side of the triangle? ');         % get the length of the adjacent side
oppostite_side = input('What is the length of the opposite side of the triangle? ');        % get the length of the opposite side

the_angle = atand(oppostite_side/adjacent_side);                                            % calculate the anlge
the_hypotenuse = oppostite_side/sind(the_angle);                                            % calculate the hypotenuse
disp(['Hi ' participant_name '!']);                                                         % display the participants name
disp(['The angle is: ' num2str(the_angle)]);                                                % display the angle