Linux-VServer pastebin service

Posted by boom on Thu 28th Sep 10:50
download | new post

  1. #include <iostream>  
  2. #include <iomanip>  
  3. using namespace std;  
  4.  
  5. int main()  
  6. {  
  7.  
  8. float assesedProperty, tax, rate;  
  9. tax=.92;  
  10. rate=1.05;  
  11. setprecision(2);  
  12.  
  13.  
  14. cout << "What is the assesed value of your property: ";  
  15. cin >> assesedProperty;  
  16.  
  17. cout << "The assesed property value is: " <<setprecision(2) << fixed <<assesedPr                                                                                                                               operty <<endl;  
  18. cout << "The taxable amount is: " <<setprecision(2) << fixed << assesedProperty*                                                                                                                                 
  19. tax <<endl;  
  20. cout << "The tax rate for each $100.00 is: $1.05" <<endl;  
  21. cout << "The property tax is:" <<setprecision(2) << fixed << rate*(assesedProper                                                                                                                                 
  22. ty*tax) <<endl;  
  23.  
  24. return 0;  
  25.  

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
Your Name

Remember my name in a cookie