Question: 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

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

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!