/*
This assignment represents my own work


The following people assisted me with this assignment:

I assisted the following people on this project:

Title: Assignment 1 Pseudocode
Sub-Title: Angles, Lengths and Volumes for a Pier
Course Code: ENG1D04
Tutorial: T25
Submitted By: Gabriel Devenyi
Student ID: 0249371
Date: January 23, 2003
Description: This program inputs some dimensions and distances for a pier and calculates the length of the pier, the volume of its supports and the angle of declanation between it and the sea-floor.

<Asymptions>
1. All input is valid (positive real numbers)
*/

/* Constant Declaration */
PI 3.1415
RAD_TO_DEG 180.0/3.1415

/* Variable Declarations */
real ship_distance, ship_depth, pillar_diameter, pillar_clearance, pillar_depth
real seafloor_angle, pier_length, pillar_height, pillar_volume

BEGIN
	/* Input */
	READ ship_distance, ship_depth, pillar_diameter, pillar_clearance, pillar_depth
	
	/* Process/Calculations */
	seafloor_angle <- arctan(ship_depth / ship_distance)
	pier_length <- pillar_depth / tan(seafloor_angle)
	pillar_height <- pillar_depth + pillar_clearance
	pillar_volume <- (PI * (pillar_diameter / 2)^2 * pillar_height) * 2 /* 2 Pillars */
	seafloor_angle <- seafloor_angle * RAD_TO_DEG /* Computes Radians, convert to degrees */
	
	/* Output */
	PRINT "The angle between the pier and the sea floor is ", seafloor_angle, " degrees."
	PRINT "The length of the pier is ", pier_length, "m."
	PRINT "The height of each pillar is ", pillar_height, "m."
	PRINT "The total volume of the pillars is ", pillar_volume, "m^3."
END

Questions:
1. The purpose of pseduocode is to form a clear set of instructions on how to solve a problem so it can be converted to any programming language, hence my pseudocode is suitable to be converted into any programming language which provides the fuctions required to perform the mathematical operations listed.
2. a) The computer itself does not understand pseudocode, it is just as the name suggests, a language that is pseudo-code or almost-code, code being the actual program we eventually write.
b) A computer requires a ISO-C Compiler in order to convert C code into low level machine instructions.
