#!/usr/bin/perl
my $sac = 2.0;
print "
\n";
print "\n";
print "| Depth | \n";
print "Rock Bottom | \n";
print "HP80 | \n";
print "Al72 | \n";
print "Al80 | \n";
print "LP72 | \n";
print "HP100 | \n";
print "LP80 | \n";
print "Al100 | \n";
print "HP119 | \n";
print "LP95 | \n";
print "HP130 | \n";
print "LP104 | \n";
print "
\n";
foreach $d (1..13) {
my $depth = $d * 10;
my $ata = $depth / 33 + 1.0;
my $probgas = $sac * $ata * 1.0;
my $asctime = $depth / 30;
my $ascgas = $sac * ( $ata + 1 ) / 2 * $asctime;
my $stopgas = $sac * ( 20 / 33 + 1.0 ) * 3.0;
my $gas = $probgas + $ascgas + $stopgas;
my $al72 = $gas / 72 * 3000.0;
my $al80 = $gas / 77.4 * 3000.0;
my $al100 = $gas / 100 * 3000.0;
my $hp100 = $gas / 100 * 3500.0;
my $lp80 = $gas / 80 * 2640.0;
my $hp119 = $gas / 119 * 3500.0;
my $lp95 = $gas / 95 * 2640.0;
my $hp130 = $gas / 130 * 3500.0;
my $lp104 = $gas / 104 * 2640.0;
my $lp72 = $gas / 72 * 2640.0;
my $hp80 = $gas / 80 * 3500.0;
$al72 = 500 if $al72 < 500;
$al80 = 500 if $al80 < 500;
$al100 = 500 if $al100 < 500;
$hp100 = 500 if $hp100 < 500;
$hp119 = 500 if $hp119 < 500;
$hp130 = 500 if $hp130 < 500;
$lp80 = 500 if $lp80 < 500;
$lp95 = 500 if $lp95 < 500;
$lp104 = 500 if $lp104 < 500;
$lp72 = 500 if $lp72 < 500;
$hp80 = 500 if $hp80 < 500;
print "";
print "| $depth fsw | ";
printf "%5.2f cu ft | ", $gas;
printf "%d psi | ", $hp80;
printf "%d psi | ", $al72;
printf "%d psi | ", $al80;
printf "%d psi | ", $lp72;
printf "%d psi | ", $hp100;
printf "%d psi | ", $lp80;
printf "%d psi | ", $al100;
printf "%d psi | ", $hp119;
printf "%d psi | ", $lp95;
printf "%d psi | ", $hp130;
printf "%d psi | ", $lp104;
print "
\n";
}
print "
\n";