Skip to main content

Posts

Showing posts from June, 2017

What is PHP?

What is PHP? PHP (recursive acronym for  PHP: Hypertext Preprocessor ) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Nice, but what does that mean? An example: Example #1 An introductory example <!DOCTYPE HTML> <html>     <head>         <title>Example</title>     </head>     <body>          <?php              echo  "Hi, I'm a PHP script!" ;          ?>     </body> </html> Instead of lots of commands to output HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that does "something" (in this case, output "Hi, I'm a PHP script!"). The PHP code is enclosed in special  start and end processing instructions  <?php  and  ?>  that allow you to jump into and out of "PHP mode." What distinguishes PHP from something like client-side JavaScript i
This program will calculate annual property tax #include <iostream> using namespace std; int main () {                 //declaration of variables     double const tax_rate = 2.64;     double amount, payable, taxable_amt, payable_tax;     const int rating = 100;         cout<<"Enter the actual value of a piece of land\n";                         //prompts th user     cout<<endl;     cin>>amount;         cout<<"Actual value of the property is:"<<"$"<<amount;                      //displays actual property price     cout<<endl<<endl;         //computation of taxable amount     taxable_amt = 0.6 * amount;         cout<<"taxable amount is :" <<"$" <<taxable_amt;                             //displays taxable amount     cout<<endl;     cout<<endl;             //computes annual property tax     payable = t