Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program 1, CSC 2262, Spring 2023 All of your programs must start with the following 4 comments: % Your name (first and last) % CSC
Program 1, CSC 2262, Spring 2023 All of your programs must start with the following 4 comments: \% Your name (first and last) \% CSC 2262 \% Spring 2023 \% Program \# (for the first program, the 4th comment should be Program 1) Program 1 has 3 parts. Put all 3 parts in a single script file named Programl. Put "format compact" at the beginning of the script file. Also put "clear, clc" at the beginning of the script file. The output of each part must look exactly like the output shown for that part. The total output of Program 1 will be the output of Part 1, Part 2 and Part 3 displayed one after another separated by blank lines, as shown below. Use the disp function to label the output of each part, e.g., disp ("Part 1") . Use disp(" ") to print a blank line. Part 1 A rectangular box has the dimensions shown. (a) Determine the angle ABC (b) Determine the area of the triangle ABC Heron's formula for triangular area: A=p(pa)(pb)(pc), where p=(a+b+c)/2 Hint: Use the Pythagorean theorem to calculate the length of the three sides, a,b and c, of the triangle. Use the Law of Cosines: b2=a2+c22accos() to calculate the angle ABC in degrees, where in the above formula is the angle ABC. Use the variable AngleABC for the angle ABC and use the variable A for the area
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started