Question: MATLAB PROGRAMMING LANGUAGE The program should ask the user for numbers until they enter N when asked if they want to enter More?. The program
MATLAB PROGRAMMING LANGUAGE


The program should ask the user for numbers until they enter N when asked if they want to enter "More?". The program can ASSUME there will be at least one number entered by the user. The program does NOT know how many numbers will be entered other than there will be at least one. The program needs to process all the data entered. It should determine o which number is the largest o whether the numbers are in ascending (non descending) order o the total (sum) of the numbers Example run (user input is in red): Your output must match the following exactly, including spaces, uppercase/lowercase, newlines, etc. Enter a number: 5 More? (N to stop): y Enter a number: 7 More? (N to stop): y Enter a number: 8 More? (N to stop): Y Enter a number: 10 More? (N to stop): n The largest number entered was 1e The numbers were all in ascending order The total of the numbers was 30 Another example run: Enter a number: 5 More? (N to stop): P Enter a number: 7 More? (N to stop): Y Enter a number: 30 More? (N to stop): y Enter a number: 18 More? (N to stop): m Enter a number: 5 More? (N to stop): n The largest number entered as 30 The numbers were not all in ascending order The total of the numbers was 65 The program should ask the user for numbers until they enter N when asked if they want to enter "More?". The program can ASSUME there will be at least one number entered by the user. The program does NOT know how many numbers will be entered other than there will be at least one. The program needs to process all the data entered. It should determine o which number is the largest o whether the numbers are in ascending (non descending) order o the total (sum) of the numbers Example run (user input is in red): Your output must match the following exactly, including spaces, uppercase/lowercase, newlines, etc. Enter a number: 5 More? (N to stop): y Enter a number: 7 More? (N to stop): y Enter a number: 8 More? (N to stop): Y Enter a number: 10 More? (N to stop): n The largest number entered was 1e The numbers were all in ascending order The total of the numbers was 30 Another example run: Enter a number: 5 More? (N to stop): P Enter a number: 7 More? (N to stop): Y Enter a number: 30 More? (N to stop): y Enter a number: 18 More? (N to stop): m Enter a number: 5 More? (N to stop): n The largest number entered as 30 The numbers were not all in ascending order The total of the numbers was 65
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
