Given the lengths of two sides of a triangle and the angle between them in degre
ID: 1848218 • Letter: G
Question
Given the lengths of two sides of a triangle and the angle between them in degrees, write a script that: Calculates the length of the third side. Calculates the other two angles in degrees. Classifies the triangle based on angles as acute, obtuse, or right triangle. The script must prompt the user to input the length two sides and the angle between them in degrees and must output the third side, the other two angles and the triangle classification. The script should display an error message if the angle in degrees is equal or greater than 180 and prompt the user to enter an acceptable value for the angle. The function rand(m,n) generates an m times n matrix with elements ranging in value from 0 to 1. Write a script that uses rand(n) to create a n times n matrix using the previous matrix generates a matrix with values ranging from -1 to 1* generate a new matrix with the round values to the nearest unit. (i.e. 0.1723 will be rounded to 0 and -0.5198 will be rounded to -1. The script must prompt the user to input the size of the matrix, n, where n must be between 4 and 10. If n is not within the range, the script should give an error message and prompt the user to input the size of the matrix again. The script should output matrices obtained in (a), (b), and (c). Note: Rounding predefined Matlab functions cannot be used. Selection statements (if or switch) should be used to perform rounding.Explanation / Answer
the question is not being displayed here in a correct format..please post a photograph of the question
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.