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, ...
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...