Question: POST MATLAB PUBLISHED ANSWER Write a program that generates three random rational numbers between -10 and 10. Label the numbers A, B, and C. Display

POST MATLAB PUBLISHED ANSWER

Write a program that generates three random rational numbers between -10 and 10. Label the numbers A, B, and C. Display all three numbers using disp([A B C]). Then

If A is greater than B, switch the two numbers (the value of A now is stored in B and the value of B now is stored in A). Display all three numbers again.

If B is the largest number, set it to zero. Otherwise, set it equal to 100. Display all three numbers again.

If C is a negative number, set it equal to zero. Display all three numbers.

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!