Skip to main content

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 = taxable_amt/rating;
    payable_tax = payable * tax_rate;
         
          cout<< "Annual property tax is :"<<"$"<<payable_tax;                     //displays annual property tax
          cout<<endl;
          cout<<endl;
         
          system("pause");
          return 0;    
          }     //ends main


Comments

Popular posts from this blog

PROGRAMMING WITH C 7.12      (Card Shuffling and Dealing) Modify the program in Fig. 7.24 so that the card-dealing function deals a five-card poker hand. Then write the following additional functions: a) Determine whether the hand contains a pair. b) Determine whether the hand contains two pairs. c) Determine whether the hand contains three of a kind (e.g., three jacks). d) Determine whether the hand contains four of a kind (e.g., four aces). e) Determine whether the hand contains a flush (i.e., all five cards of the same suit). f) Determine whether the hand contains a straight (i.e., five cards of consecutive face values) ANSWER 7.12 #include<stdio.h> #include<stdlib.h> #include<time.h> //main functions void shuffle( int wDeck[][ 13 ] ); void deal( const int wDeck[][ 13 ], const char *wface[], const char *wSuit[], char *wfSuit[], char *wfFace[] ); //operation functions void pair( const char *...
Hei guys ! Watch out for more on c plus plus

Coding..........