A simple model for the hull of a ship is given by: (Note: There are two values

Question:

A simple model for the hull of a ship is given by:

image text in transcribed

image text in transcribed

(Note: There are two values of y for each x and z because the hull is symmetric from starboard to port.)
The cross-sectional area at a point x is called the “section”
in nautical parlance. To compute it, let z go from 0 to –T in n increments, each of size T. For each value of z, compute the value for y. Then sum the areas of trapezoidal strips. At right are the strips where n = 4.
Write a program that reads in values for B, L, T, x, and n and then prints out the cross-sectional area at x.

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: