Question: ENGR 1 2 0 4 Programming Languages in Engineering Homework 1 The first 5 problems are from S . Attaway, MATLAB - A Practical Introduction

ENGR 1204 Programming Languages in Engineering
Homework 1
The first 5 problems are from S. Attaway, MATLAB - A Practical Introduction to Programming and Problem Solving (6th Edition)
For each problem, print out the script file if created and the relevant Command Window output. In later assignments plots may need to be printed as well. Also, show analytical work where appropriate.
(15 points) Chapter 1- Exercises 8
(15 points) Chapter 1- Exercises 10
(15 points) Chapter 1- Exercises 13
(15 points) Chapter 1- Exercises 29. Assume the speed v=2.9108ms.
(15 points) Chapter 3- Exercises 2
(25 points)
If the lengths of two sides (b and c) of a triangle and the angle between them () are known, the length of the third side (a) can be calculated. Given in degrees, a is calculated as follows:
a2=b2+c2-2bccos()
Write a script thridside. m that will prompt the user and read in values for b,c and (in degrees), and then calculate and print the value of a, with 3 decimal places. The format of the output from the script should look exactly like this:
> thirdside
Enter the first side: 2.2
Enter the second side: 4.4
Enter the angle between them in degrees: 50
The third side is 3.429
explain to me step by step using Matlab
ENGR 1 2 0 4 Programming Languages in Engineering

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 Programming Questions!