
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 1P
Write pseudocode to implement the flowchart depicted in Fig. P2.1. Make sure that proper indentation is included to make the structure clear.
FIGURE P2.1
Expert Solution & Answer

To determine
The pseudo code for the flow chart provided flowchart.
Answer to Problem 1P
Solution:
The pseudo codeto the provided question is as follows:
IF x < 100 THEN
IF x < 50 THEN
x = 0
ELSE
x = 75
END IF
ELSE
DO
IF x <= 500 EXIT
x = x - 50
END DO
ENDIF
Explanation of Solution
Given:
The flow chart is as follows:
The flow chart,
The pseudo code to the provided question is as follows:
IF x < 100 THEN
IF x < 50 THEN
x = 0
ELSE
x = 75
END IF
ELSE
DO
IF x <= 500 EXIT
x = x - 50
END DO
ENDIF
Want to see more full solutions like this?
Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Obtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). please show that you use Partial Fraction Decomposition, Laplace transform and Cramer's rule.
Obtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). please show that you use Laplace transform and Cramer's rule.
5.12 A steel wire 300 feet long and 1½-½ inch in diameter
weighs 0.042 #/ft. If the wire is suspended vertically from
its upper end, calculate (a) the maximum tensile stress due
to its own weight and (b) the maximum weight W that can
be safely supported assuming a safety factor of three and
an ultimate tensile stress of 65 ksi.
a. The maximum tensile stress due to
its own weight
b. Maximum weight
Chapter 2 Solutions
Numerical Methods for Engineers
Ch. 2 - 2.1 Write pseudocode to implement the flowchart...Ch. 2 - Prob. 2PCh. 2 - 2.3 Develop, debug, and document a program to...Ch. 2 - The sine function can be evaluated by the...Ch. 2 - 2.5 Develop, debug, and document a program for...Ch. 2 - The following algorithm is designed to determine a...Ch. 2 - The divide and average method, an old-time method...Ch. 2 - 2.8 An amount of money P is invested in an account...Ch. 2 - 2.9 Economic formulas are available to compute...Ch. 2 - 2.10 The average daily temperature for an area can...
Ch. 2 - Develop, debug, and test a program in either a...Ch. 2 - 2.12 The bubble sort is an inefficient, but...Ch. 2 - Figure P2.13 shows a cylindrical tank with a...Ch. 2 - 2.14 Two distances are required to specify the...Ch. 2 - Develop a well-structured function procedure that...Ch. 2 - Prob. 16PCh. 2 - Develop well-structured programs to (a) determine...Ch. 2 - 2.18 Piecewise functions are sometimes useful when...Ch. 2 - Develop a well-structured function to determine...Ch. 2 - 2.20 Develop a well-structured function to...Ch. 2 - 2.21 Manning’s equation can be used to compute the...Ch. 2 - 2.22 A simply supported beam is loaded as shown in...Ch. 2 - ThevolumeV of liquid in ahollow horizontal...Ch. 2 - 2.24 Develop a well-structured program to compute...Ch. 2 - The pseudocode in Fig. P2.25 computes the...Ch. 2 - 2.26 The height of a small rocket y can be...Ch. 2 - 2.27 As depicted in Fig. P2.27, a water tank...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.Similar questions
- 5.6 The turnbuckles in the diagram shown are tightened until the compression block DB exerts a force of 10,000# on the beam at B. Member DB is a hollow shaft with an inner diameter of 1.0 inch and outer diameter of 2 inches. Rods AD and CD each have cross-sectional areas of 1.0 in.². Pin C has a diameter of 0.75 inch. Determine: a. The axial stress in BD- b. The axial stress in CD- c. The shearing stress in pin C. B UB CD PIN VIEWED FROM BELOWarrow_forward5.15 The ends of the laminated-wood roof arch shown are tied together with a horizontal steel rod 90 feet, "10 inches" long, which must withstand a total load of 60 k. Two turn- buckles are used. All threaded rod ends are upset. a. Determine the required diameter D of the rod if the maximum allowable stress is 20 ksi. b. If the unstressed length of the rod is 90 feet, "10 inches" and there are four threads per inch on the upset ends, how many turns of one turnbuckle will bring it back to its unstressed length after it has elongated under full allowable tensile stress? E = 29 × 103 ksi. a. Required diameter D b. Number of turns LAMINATED WOOD ROOF ARCH TIE ROD TURNBUCKLE DETAIL: UPSET ENDarrow_forward5.8 A reinforced concrete column is 12 feet long, and un- der load, it shortens 3 inches". Determine its average unit strain. Average Unit Strainarrow_forward
- 5.10 A 500-foot-long steel cable is loaded in tension and registers an average unit strain of 0.005. Determine the total elongation due to this load. Total Elongationarrow_forward5.14 A 100-foot-long surveyor's steel tape with a cross- sectional area of 0.006 square inch must be stretched with a pull of 16# when in use. If the modulus of elasticity of this steel is E = 30,000 ksi, (a) what is the total elongation 8 in the 100 foot tape and (b) what unit tensile stress is pro- duced by the pull? a. Elongation b. Tensile Stressarrow_forwardObtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forward
- Obtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forwardObtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forwardv(t) + R₁ = 1 ohm W R2 = 1 ohm www i1(t) 0000 L = 2H i2(t) C 1F + vc(t)arrow_forward
- Obtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forwardFor communcation marks. In the questions answered above should have the criteria show proper mathematical form use proper symbols, notations, conventions, graph(s) where applicable solution is neat, clear and easy to follow If you write on the paper in online version you will be assigned 0 marks except graph.arrow_forwarda) If is a polynomial function, does always have to have a horizontal asymptote? If no, provide a counterexample. ax+b b) Write an equation for a rational function whose graph of the formex+d where f(x) has all the indicated features. X-intercept of 14 Y-intercept of -1/2 VA with equation -2/3 HA with equation 4/3arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageMathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY