Question: A simple model for the hull of a ship is given by: (Note: There are two values of y for each x and z because
A simple model for the hull of a ship is given by:
![2x -4-01-0] L where B is the beam, L is the length,](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/6/1/9/21065b8f14ae63581706619210449.jpg)

(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.

2x -4-01-0] L where B is the beam, L is the length, and I' is the draft. = B
Step by Step Solution
3.42 Rating (152 Votes )
There are 3 Steps involved in it
The given simple model for the hull of a ship can be represented mathematically by the function that relates y to x and z The crosssectional area of t... View full answer
Get step-by-step solutions from verified subject matter experts
