-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPropertyTax.cpp
More file actions
31 lines (25 loc) · 1.4 KB
/
PropertyTax.cpp
File metadata and controls
31 lines (25 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//******************************************************************************************************************************
//
// File: HowManyCalories.cpp
// Student: Alec Ochoa Michaud
// Programing challenge: Starting Out With C++, page 182 exercise 14: Property Tax.
// Madison Country collects property taxes on the assessed value of property, which is
// 60 percent of its actual value. For example, if a house is valued at $158,000
// its assessed value is $94,800. THis is the amount the homeowner pays tax on.
// At least year's tax rate of $2.64 for each $100 of assessed value.
// The program should then calculate and report how much annual property tax the
// homeowner will be charged for this property.
//
//*******************************************************************************************************************************
#include <iostream>
using namespace std;
int main() {
//Expected values
float property_value, tax_per_year, property_60;
cout<<" What is the value of the property: ";
cin>> property_value;
property_60 = (60*property_value) / 100;
tax_per_year = (property_60 / 100) * 2.64;
cout<< "The tax per year is: " << tax_per_year;
return 0;
}