Answered step by step
Verified Expert Solution
Link Copied!

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 LANGNUAGEimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

A current asset is one that the company will use up or convert

Answered: 1 week ago

Question

Recognize the four core purposes service environments fulfill.

Answered: 1 week ago