ace@staticwave:~/code$ ./code-assignment1 Please enter the distance from the shore to the ship: 250 Please enter the depth the ship measures: 6 Please enter the diameter of the pillar: 0.3 Please enter the clearance of the pillar out of water: 0.5 Please enter the depth to which the pillar reaches: 2.5 The angle between the pier and the sea floor is 1.37 degrees. The length of the pier is 104.17 m. The height of each pillar is 3.00 m. The total volume of the two pillars is 0.42 m^3. ------------------------------------------------------------------- ace@staticwave:~/code$ ./code-assignment1 Please enter the distance from the shore to the ship: 500 Please enter the depth the ship measures: 12 Please enter the diameter of the pillar: 0.6 Please enter the clearance of the pillar out of water: 1 Please enter the depth to which the pillar reaches: 5 - The angle between the pier and the sea floor is 1.37 degrees. The length of the pier is 208.33 m. The height of each pillar is 6.00 m. The total volume of the two pillars is 3.39 m^3. ------------------------------------------------------------------- ace@staticwave:~/code$ ./code-assignment1 Please enter the distance from the shore to the ship: 100 Please enter the depth the ship measures: 20 Please enter the diameter of the pillar: 0.8 Please enter the clearance of the pillar out of water: 0.7 Please enter the depth to which the pillar reaches: 8 The angle between the pier and the sea floor is 11.31 degrees. The length of the pier is 40.00 m. The height of each pillar is 8.70 m. The total volume of the two pillars is 8.75 m^3. ------------------------------------------------------------------- ace@staticwave:~/code$ ./code-assignment1 Please enter the distance from the shore to the ship: 120 Please enter the depth the ship measures: 75 Please enter the diameter of the pillar: 2 Please enter the clearance of the pillar out of water: 0.5 Please enter the depth to which the pillar reaches: 10 The angle between the pier and the sea floor is 32.01 degrees. The length of the pier is 16.00 m. The height of each pillar is 10.50 m. The total volume of the two pillars is 65.97 m^3. ------------------------------------------------------------------- ace@staticwave:~/code$ ./code-assignment1 Please enter the distance from the shore to the ship: 1000 Please enter the depth the ship measures: 250 Please enter the diameter of the pillar: 0.45 Please enter the clearance of the pillar out of water: 0.25 Please enter the depth to which the pillar reaches: 30 The angle between the pier and the sea floor is 14.04 degrees. The length of the pier is 120.00 m. The height of each pillar is 30.25 m. The total volume of the two pillars is 9.62 m^3.