Question: Please help need this in java code P.6.16 A simple model for the hull of a ship is given by |y| = B/2 [1 -
A simple model for the hull of a ship is given by |y| = B/2 [1 - (2x/L)^2] [1 - (z/T)^2] where B is the beam, L is the length, and T is the draft. 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
