C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 7.5, Problem 15E
Program Plan Intro
To modify the
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
2. calculates the trajectory r(t) and stores the coordinates for time steps At as a nested list trajectory that contains [[xe, ye,
ze], [x1, y1, z1], [x2, y2, z2], ...]. Start from time t = 0 and use a time step At = 0.01; the last data point in the
trajectory should be the time when the oscillator "hits the ground", i.e., when z(t) ≤ 0;
3. stores the time for hitting the ground (i.e., the first time t when z(t) ≤ 0) in the variable t_contact and the corresponding positions
in the variables x_contact, y_contact, and z_contact. Print
t_contact = 1.430
X_contact = 0.755
y contact = -0.380
z_contact =
(Output floating point numbers with 3 decimals using format (), e.g., "t_contact = {:.3f}" .format(t_contact).) The partial
example output above is for ze = 10.
4. calculates the average x- and y-coordinates
1
y =
Yi
N
where the x, y, are the x(t), y(t) in the trajectory and N is the number of data points that you calculated.
Store the result as a list in the variable center = [x_avg, y_avg]…
Problem 2
Write a computer program that can be used to determine the magnitude and the point of
application of the resultant of the vertical forces P1 , P2, ..., P, that act at points Aj , A2, ...,
An that are located in the xz plane:
P2
Pn
P1
An
N
Problem 1
A beam AB is subjected to several vertical forces as shown. Write a computer program that can
be used to determine the magnitude of the resultant of the forces and the distance x C to point C,
the point where the line of action of the resultant intersects AB.
- X,7
- X2-
C
A
|B
Chapter 7 Solutions
C++ for Engineers and Scientists
Ch. 7.1 - (Practice) Write array declarations for the...Ch. 7.1 - (Practice) Write correct notation for the first,...Ch. 7.1 - Prob. 3ECh. 7.1 - (Practice) a. Write output statements using cout...Ch. 7.1 - (Desk check) List the elements displayed by the...Ch. 7.1 - (Practice) a. Write a program to input the...Ch. 7.1 - (Practice) Write a program to input eight integer...Ch. 7.1 - (Data processing) a. Write a program to input 10...Ch. 7.1 - Prob. 9ECh. 7.1 - (Electrical eng.) Write a program that specifies...
Ch. 7.2 - (Practice) Write array declarations, including...Ch. 7.2 - (Data processing) Write an array declaration...Ch. 7.2 - (Data processing) Write a program that uses an...Ch. 7.2 - (Electrical eng.) Write a program that stores the...Ch. 7.2 - (Practice) a. Write a declaration to store the...Ch. 7.3 - (Practice) Write specification statements for the...Ch. 7.3 - (Desk check) Determine the output produced by the...Ch. 7.3 - (Practice) a. Write a C++ program that adds the...Ch. 7.3 - (Practice) Write a C++ program that adds...Ch. 7.3 - Prob. 5ECh. 7.3 - (Electrical eng.) a. An engineer has constructed a...Ch. 7.4 - Prob. 1ECh. 7.4 - Prob. 2ECh. 7.4 - Prob. 3ECh. 7.4 - Prob. 4ECh. 7.4 - Prob. 5ECh. 7.4 - (Electrical eng.) Write a program that declares...Ch. 7.4 - (Statistics) Write a program that includes two...Ch. 7.5 - Prob. 1ECh. 7.5 - (Practice) Run Program 7.10 to determine the...Ch. 7.5 - Prob. 3ECh. 7.5 - (List maintenance) a. Write a complete C++ program...Ch. 7.5 - Prob. 5ECh. 7.5 - (List maintenance) The following letters are...Ch. 7.5 - (File creation) Write a C++ program that creates...Ch. 7.5 - Prob. 8ECh. 7.5 - Prob. 9ECh. 7.5 - Prob. 10ECh. 7.5 - Prob. 11ECh. 7.5 - Prob. 12ECh. 7.5 - Prob. 13ECh. 7.5 - Prob. 14ECh. 7.5 - Prob. 15ECh. 7.6 - Prob. 1ECh. 7.6 - Prob. 2ECh. 7.6 - Prob. 3ECh. 7.6 - Prob. 4ECh. 7.6 - Prob. 5ECh. 7.6 - Prob. 6ECh. 7.6 - Prob. 7ECh. 7.6 - Prob. 8ECh. 7.6 - (Practice) Use the max_element and min_element...Ch. 7 - (Statistics) a. Write a C++ program that reads a...Ch. 7 - (Practice) Define an array named peopleTypes that...Ch. 7 - (Numerical) Given a one-dimensional array of...Ch. 7 - (Numerical) Write and test a function that returns...Ch. 7 - (Sorting) Read a set of numerical grades from the...Ch. 7 - (Numerical) a. Define an array with a maximum of...Ch. 7 - (Numerical) Using the srand() and rand() C++...Ch. 7 - (Statistical) In many statistical analysis...Ch. 7 - (Data processing) Your professor has asked you to...Ch. 7 - (Modify) Modify the program written for Exercise 9...Ch. 7 - Prob. 11PPCh. 7 - (Data processing) The answers to a true-false test...Ch. 7 - Prob. 13PPCh. 7 - (Data processing) Construct a three-dimensional...Ch. 7 - (Computation) A magic square is a square of...Ch. 7 - (Computation) Among other applications, Pascal’s...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- (Conversion) An object’s polar moment of inertia, J, represents its resistance to twisting. For a cylinder, this moment of inertia is given by this formula: J=mr2/2+m( l 2 +3r 2 )/12misthecylindersmass( kg).listhecylinderslength(m).risthecylindersradius(m). Using this formula, determine the units for the cylinder’s polar moment of inertia.arrow_forwardA bicycle wheel has a diameter of 64.6 cm and a mass of 1.87 kg. Assume that the wheel is a hoop with all of the mass concentrated on the outside radius. The bicycle is placed on a stationary stand and a resistive force of 125 N is applied tangent to the rim of the tire. (a) What force must be applied by a chain passing over a 8.96 cm diameter sprocket if the wheel is to attain an acceleration of 4.49 rad/s22? (b) What force is required if the chain shifts to a 5.57 cm diameter sprocket?arrow_forwardA capacitor, an electric resistance heater and an impedance are connected in parallel to a 120V 60HZ system. The capacitor draws 50VAR, the heater draws 100W, and the impedance coil draws 269VA at 0.74 pf. ( Determine the following: a. pf of the system, b. the total apparent power and c. total current flowing thru the system.arrow_forward
- The two blocks of Figure 6.17 are attached to each other by a massless string that is wrapped around a frictionless pulley. When the bottom 4.00-kg block is pulled to the left by the constant force P, the top 2.00-kg block slides across it to the right. Find the magnitude of the force necessary to move the blocks at constant speed. Assume that the coefficient of kinetic friction between all surfaces is 0.400.arrow_forwardSuppose that a parachutist with linear drag (m=50 kg, c=12.5kg/s) jumps from an airplane flying at an altitude of a kilometer with a horizontal velocity of 220 m/s relative to the ground. a) Write a system of four differential equations for x,y,vx=dx/dt and vy=dy/dt. b) If theinitial horizontal position is defined as x=0, use Euler’s methods with t=0.4 s to compute the jumper’s position over the first 40 s. c) Develop plots of y versus t and y versus x. Use the plot to graphically estimate when and where the jumper would hit the ground if the chute failed to open.arrow_forwardA ball is thrown from the top of one building toward a tall building 50 ft away. The initial velocity of the ball is 20 ft/s at 400 above the horizontal. How far above or below its original level will the ball strike the opposite wall?arrow_forward
- 2. The flight of a model rocket can be modeled as follows. During the first 0.15 s the rocket is propelled upward by the rocket engine with a force of 16 N. The rocket then flies up while slowing down under the force of gravity. After it reaches the apex, the rocket starts to fall back down. When its downward velocity reaches 20 m/s, a parachute opens (assumed to open instantly), and the rocket continues to drop at a constant speed of 20 m/s until it hits the ground. Write a program that calculates and plots the speed and altitude of the rocket as a function of time during the flight.arrow_forwardThe displacement of an oscillating spring can be described by x = A cos(wt) where x = displacement at time t, A = maximum displacement, w = angular frequency, which depends on the spring constant and the mass attached to the spring, and t = time. Find the displacement, x, with maximum displacement A of 4 cm, for times from 0 to 120 seconds with increments of 30 seconds, and angular frequencies from 0.4 to 0.6 radians/sec, with increments of 0.1 radians/sec. The displacement for all combinations of times and angular frequencies needs to be calculated. Use meshgrid. Display your results in a matrix with angular frequencies along the top row and times along the left column like so (you may put zero, 0, or NaN, in the upper left corner:arrow_forwardThe operation of the fuel pump for an automobile depends on the reciprocating action of the rocker arm ABC, which is pinned at B and is spring loaded at A and D. The smooth cam C is in the position shown. The vertical force acting on the rocker arm at A is F₁60 N, and at C it is Fo 155 N (Eigure 1) Figure 50 mm Figure 10 mm 50 mm The operation of the fuel pump for an automobile depends on the reciprocating action of the rocker arm ABC, which is pinned at B and is spring loaded at A and D. The smooth cam C is in the position shown. The vertical force acting on the rocker arm at A is F =60 N. and at C it is Fe=155 N. (Figure 1) 20 mm- 10 mm 1 of 1 mm. 1 of 1 Part A Z Determine the and y components of the reaction force on the rocker arm ABC at the pin for equilib Express your answers using three significant figures separated by a comma. 195] ΑΣΦ | 11 | voc | B₁, B,= Submit Part B Part B Fo Submit Request Answer Determine the magnitude of the force along the spring DF for equilibrium.…arrow_forward
- a. For the function and point below, find f'(a). b. Determine an equation of the line tangent to the graph of f at (a,f(a)) for the given value of a. f(x) = 2x°, a = 1 %3D ..... a. f'(a) =arrow_forwardThe flight of a model rocket can be modeled as follows. During the first 0.15 s the rocket is propelled upward by the rocket engine with a force of 16 N. The rocket then flies up while slowing down under the force of gravity. After it reaches the apex, the rocket starts to fall back down. When its downward velocity reaches 20 m/s, a parachute opens (assumed to open instantly), and the rocket continues to drop at a constant speed of 20 m/s until it hits the ground. Write a program that calculates and plots the speed and altitude of the rocket as a function of time during the flight. SOLVE WITH MATLAB PLEASEarrow_forward1. Determine the equation of the line through the given point (a) parallel and (b) perpendicular to the given line Given: Point: ( -1,-4) Line: 4x-2y=3arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr