i just started with C++ program so i know very little programming .
i have to make a program that calculates tax
the senerio is this
Federal:
15% on the first $43 561 of taxable income, +
22% on the next $43 562 of taxable income, (on the portion of taxable income over $43 561 to $87 123) +
26% on the next $47 931 of taxable income, (on the portion of taxable income over $87 123 to $135 054) +
29% of taxable income over $135 054
Provincial (Ontario):
5.05% on the first $39 723 of taxable income, +
9.15% on the next $39 725 of taxable income, (on the portion of taxable income over $39 723 up to $79 448) +
11.16% on the next $429552 of taxable income, (on the portion of taxable income over $79 448 up to $509 000) +
13.16% of taxable income over $ 509 000
Provincial (Alberta):
10% of taxable income
this is what i have so far:
#include <iostream>;
using namespace std;
int calculateFederalTaxes(int Income);
int calculateProvincialTaxes(int Income, int Province);
int calculateOntarioTaxes(int Income);
int calculateAlbertaTaxes(int Income);
int totalTaxes(int Income, int calculateFederalTaxes, int calculateProvincialTaxes);
void main()
{
int Income;
int Province;
float FederalTaxes = calculateFederalTaxes(Income);
float Provincial = calculateProvincialTaxes(Income, Province);
int totalTaxes(int Income, int calculateFederalTaxes, int calculateProvincialTaxes);
cout << "Welcome to the tax calculation system" << endl << endl;
cout << "Select the province yo live in: "<< endl << endl;
int one;
cout << "1 = Ontario" << endl;
int two;
cout <<"2 = Alberta" << endl;
cout << "what is your selection"<<endl <<endl;
cin >> Province;
if (Province == 1){
cout << "Ontario" << endl <<endl;
}
else if (Province == 2){
cout << "Alberta" << endl <<endl;
}
else {
cout <<"This is a wrong selection" << endl <<endl;
}
cout << "Please enter your income" << Income << endl <<endl;
cin >> Income;
//.federal tax
int calculateFederalTaxes(int Income);
if (Income >= 0 || Income <= 43561){
FederalTaxes = Income*0.15;
}
else if (Income >=43562 |Income <= 87123){
FederalTaxes = Income*0.22;
}
else if (Income >=87123 |Income <= 135054){
FederalTaxes = Income*0.26;
}
else if (Income >=135054){
FederalTaxes = Income*0.29;
cout << "The federal tax will be: " << FederalTaxes << endl << endl;
}
}
i am stuck after this , a little help would be appreciative.
please and thank you