Write a program that generates three random rational


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.

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Write a program that generates three random rational
Reference No:- TGS02895406

Expected delivery within 24 Hours