Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB PROGRAMMING LANGNUAGE The program should ask the user for numbers until they enter N when asked if they want to enter More?. The program
MATLAB PROGRAMMING LANGNUAGE
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 65Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started