Docsity

Exam 4: Solving for Resultant Force and Angle in a Plane with Given Coplanar Forces - Prof, Exams of Aerospace Engineering

Toggle sidebar
bg1
Aer E 160 Spring 2009 Exam 4 Name: _________________________________
1. Show all work. The following forces all lie in the same plane and their lines of action pass through the origin of a two-
dimensional, Cartesian coordinate system. Find the resultant force,
R
, and the angle at which it acts,
θR
, at the origin for the forces
listed in Table 1. The angles in this table represent the angle at which the corresponding force acts relative to the positive
x
-axis.
Table 1. Coplanar forces acting through a common point.
F1F2F3F4
Force,
lbf
80 125 70 220
Angle, ∠48o132o159o275o
2. Create an input file named “force.dat” with the forces and angles above (arranged in two rows as in Table 1). At the top of the
file, put the number four, meaning that the file contains data for four forces, followed by the units on the forces (
N
,
lbf
, etc.). Then,
write a code that:
a. Asks the use for an input file name;
b. Opens the input file and reads the number of forces,
n
, and the units;
c. Allocates two one-dimensional arrays,
F
and
θ
, based on the value of
n
;
d. Reads the forces and angles from the input file into the arrays;
e. Resolves the forces into components,
Rx
and
Ry
;
f. Reduces
Rx
and
Ry
into
R
and
θR
; and,
g. Writes
Rx
,
Ry
,
R
and
θR
on the screen along with the correct units from the input file.
θR
is the angle from the positive
x
-axis, measured counterclockwise; therefore, the calculation of
θR
must consider which
quadrant
R
falls within.
When you are ready to present your solution to the instructor, have three terminal windows open – one showing the contents of
the input file, one showing the code and one showing the results of testing the code with force.dat.

Partial preview of the text

Download Exam 4: Solving for Resultant Force and Angle in a Plane with Given Coplanar Forces - Prof and more Exams Aerospace Engineering in PDF only on Docsity!

Aer E 160 Spring 2009 Exam 4 Name: _________________________________

  1. S how all work. The following forces all lie in the same plane and their lines of action pass through the origin of a two- dimensional, Cartesian coordinate system. Find the resultant force, R, and the angle at which it acts, θR, at the origin for the forces listed in Table 1. The angles in this table represent the angle at which the corresponding force acts relative to the positive x-axis. Table 1. Coplanar forces acting through a common point. F 1 F 2 F 3 F 4 Force, lbf 80 125 70 220 Angle, ∠ 48 o^132 o^159 o^275 o
  2. Create an input file named “force.dat” with the forces and angles above ( arranged in two rows as in Table 1). At the top of the file, put the number four, meaning that the file contains data for four forces, followed by the units on the forces ( N, lbf, etc.). Then, write a code that: a. Asks the use for an input file name; b. Opens the input file and reads the number of forces, n , and the units; c. Allocates two one-dimensional arrays, F and θ, based on the value of n ; d. Reads the forces and angles from the input file into the arrays; e. Resolves the forces into components, Rx and Ry ; f. Reduces Rx and Ry into R and θR ; and, g. Writes Rx , Ry , R and θR on the screen along with the correct units from the input file. θR is the angle from the positive x-axis, measured counterclockwise; therefore, the calculation of θR must consider which quadrant R falls within. When you are ready to present your solution to the instructor, have three terminal windows open – one showing the contents of the input file, one showing the code and one showing the results of testing the code with force.dat.