Question: MATLAB Help: Write a program that will collect numbers from the user until the user enters a non-numeric value. It then returns the sum and

MATLAB Help:

Write a program that will collect numbers from the user until the user enters a non-numeric value. It then returns the sum and the average of all the numbers entered. Example below:

-----

Enter a number: 2.5

Enter a Number: 2

Enter a Number: 59

Enter a Number: 2

Enter a Number: 9

Enter a Number: 1.1

Enter a Number: k

The sum of the 6 numbers entered is 75.6. The average is 12.6.

-----

Thank you for the help!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!