C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
bartleby

Videos

Textbook Question
Book Icon
Chapter 3.6, Problem 6E

(General math) The perimeter, approximate surface area, and approximate volume of an in-ground pool are given by the following formulas:

p e r i m e t e r   =   2 ( l e n g t h   +   w i d t h ) v o l u m e   =   l e n g t h   ×   w i d t h   ×   a v e r a g e   d e p t h u n d e r g r o u n d   s u r f a c e   a r e a   =   2 ( l e n g t h   +   w i d t h ) a v e r a g e   d e p t h   +   l e n g t h   ×   w i d t h

Using these formulas as a basis, write a C++ program that accepts the length, width, and average depth measurements, and then calculates the pool’s perimeter, volume, and underground surface area. In writing your program, make these two calculations immediately after entering the input d a t a :   l e n g t h   ×   w i d t h   a n d   l e n g t h   +   w i d t h . The results of these two calculations should be used as needed in the assignment statements for determining the perimeter, volume, and underground surface area without recalculating them for each equation. Verify your program’s results by doing a hand calculation, using the following test data :   l e n g t h   =   25   f e e t ,   w i d t h   =   15   f e e t ,   a n d   a v e r a g e   d e p t h   =   5.5   f e e t . After verifying that your program is working, use it to complete the following chart:

Chapter 3.6, Problem 6E, (General math) The perimeter, approximate surface area, and approximate volume of an in-ground pool

Blurred answer
Students have asked these similar questions
1. A 500-liter tank initially contains 10 g of salt dissolved in 200 liters of water. Starting at to = 0, water that contains 1/4 g of salt per liter is poured into the tank at the rate of 4 liters/min and the mixture is drained from the tank at the rate of 2 liters/min. Determine the quantity Q(t) of salt in the tank at time t = 0 until the time when the tank overflows. Code a C program which determined this quantity Q(t) by using RK4 method with h = 1. Note: May use the concept of function prototypes, function definition, function call, recursion etc. in a program. 2. A team of surveyors conducted depth-sounding at equidistant locations across the river to measure the area of a river cross-section. Determine the area of the cross-section by coding a C program of the Composite Simpson Rule, taking into consideration the river's 6.0 m width and the fact that it is equally divided into 7 stations. Station Depth, m 0 1 -1.23 24555 3 6 7 -2.08 -2.57 -1.86 -0.65 -0.24 Note: Determine the…
6. (0) Given y' = x - v. v(O) = 1. find correct to four decimal places the value of %3D 60) y(0.1), by using Euler's method.
M D d T M. P- A circular shaft having diameters D and d and a groove of radius r (with M = 0 and P O) is made of steel with the allowable shear stress tall. Find the maximum torque I that can be transmitted by the shaft. Given: D = 28mm, d = 20mm, r = 4mm, and tall = 250 MPa. Please help with this question. The answer should be 157.1 Nm

Chapter 3 Solutions

C++ for Engineers and Scientists

Ch. 3.1 - (Debug) Determine and correct the errors in the...Ch. 3.1 - Prob. 12ECh. 3.1 - Prob. 13ECh. 3.1 - (General math) The area of an ellipse (see Figure...Ch. 3.1 - Prob. 15ECh. 3.2 - Prob. 1ECh. 3.2 - Prob. 2ECh. 3.2 - (Practice) Write a C++ program that displays the...Ch. 3.2 - Prob. 4ECh. 3.2 - Prob. 5ECh. 3.2 - Prob. 6ECh. 3.2 - Prob. 7ECh. 3.2 - Prob. 8ECh. 3.2 - (Electrical eng.) The combined resistance of three...Ch. 3.2 - Prob. 10ECh. 3.2 - Prob. 11ECh. 3.2 - (Civil eng.) Write a C++ program to calculate and...Ch. 3.3 - Prob. 1ECh. 3.3 - Prob. 2ECh. 3.3 - (Practice) Write C++ statements for the following:...Ch. 3.3 - Prob. 4ECh. 3.3 - (General math) Write, compile, and run a C++...Ch. 3.3 - (General math) If a 20-foot ladder is placed on...Ch. 3.3 - (Physics) The maximum height reached by a ball...Ch. 3.3 - (Transportation) Road construction requires...Ch. 3.3 - Prob. 9ECh. 3.3 - Prob. 10ECh. 3.3 - Prob. 11ECh. 3.3 - Prob. 12ECh. 3.4 - Prob. 1ECh. 3.4 - (Practice) a. Write a C++ program that first...Ch. 3.4 - Prob. 3ECh. 3.4 - Prob. 4ECh. 3.4 - Prob. 5ECh. 3.4 - Prob. 6ECh. 3.4 - (General math) a. Write, compile, and run a C++...Ch. 3.4 - Prob. 8ECh. 3.4 - Prob. 9ECh. 3.4 - (Electrical eng.) For the series circuit shown in...Ch. 3.4 - Prob. 11ECh. 3.4 - Prob. 12ECh. 3.4 - Prob. 13ECh. 3.5 - Prob. 1ECh. 3.5 - Prob. 2ECh. 3.5 - Prob. 3ECh. 3.5 - Prob. 4ECh. 3.5 - Prob. 5ECh. 3.6 - Prob. 1ECh. 3.6 - (General math) The value of p can be approximated...Ch. 3.6 - Prob. 3ECh. 3.6 - (General math) The volume of oil stored in an...Ch. 3.6 - Prob. 5ECh. 3.6 - (General math) The perimeter, approximate surface...Ch. 3.6 - Prob. 7ECh. 3.6 - Prob. 8ECh. 3.6 - Prob. 9ECh. 3 - (General math) a. Write a C++ program to calculate...Ch. 3 - General math) a. Write a C++ program to calculate...Ch. 3 - (General math) Modify the program written for...Ch. 3 - (Biology) The number of bacteria, B, in a culture...Ch. 3 - Prob. 5PPCh. 3 - (Heat transfer) The formula developed in Exercise...Ch. 3 - Prob. 7PPCh. 3 - (Electrical eng.) a. The voltage gain of an...Ch. 3 - (Electrical eng.) a. Write, compile, and run a C++...Ch. 3 - (Electrical eng.) The amplification of electronic...Ch. 3 - (Acoustics) The loudness of a sound is measured in...Ch. 3 - (General math) a. A balance has the following...
Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Boolean Algebra - Digital Logic and Logic Families - Industrial Electronics; Author: Ekeeda;https://www.youtube.com/watch?v=u7XnJos-_Hs;License: Standard YouTube License, CC-BY
Boolean Algebra 1 – The Laws of Boolean Algebra; Author: Computer Science;https://www.youtube.com/watch?v=EPJf4owqwdA;License: Standard Youtube License