In this article I wrote a sample program to ask the user to give a value in centimeter and then our program will convert it into feet equivalent using PHP as our programming language. I hope you will find my work useful.
programming projects , thesis and capstone projects, IT consulting
work and web development work kindly contact me in the following email address for further details. If you want to advertise in my website kindly contact me also in my email address also. Thank you.
My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Sample Program Output
Program Listing
fee.php
<?php
function ConversionToFeet($centi)
{
$feet = 0.0328 * $centi;
echo("<h2> Feet (s) equivalent is " . $feet . ".</h2>\n");
}
$centi = 100;
echo "<style> body { font-family:arial; size:12px } </style>";
echo "<h2> Centimeter To Feet Converter in PHP </h2>";
echo "<h3> Written By Mr. Jake Rodriguez Pomperada, MAED-IT </h3>";
ConversionToFeet($centi);
echo "<h2> End of Program </h2>";
?>
No comments:
Post a Comment