Newbie having problems with errors
I am in a Programming design class, not even C++, and am basically trying to make a program from a design I did. I have very limited experience with C++ and feel through reading online that I get the gist of this, I am just having a few errors I can't figure out.
Here is the code
Code:
// Basic C++ info
#include <iostream>
#include <string>
using namespace std;
// Declare Global Variables
float fltIncome, fltTaxowed
// Modules
void TaxTable();
void LowBracket();
void MiddleBracket();
void HighBracket();
// Made the Modules seperate so that if the tax rate changes, you just have to change the module and not entire program
int Main()
{
cout << "Welcome to the WilliamK99 Tax Calculator" << endl;
cout << "Please enter your yearly annual taxable income" << endl;
cin >> fltIncome;
TaxTable();
return 0;
}
void TaxTable()
{
if ((fltIncome > 0) && (fltIncome <= 50000)){
LowBracket ();}
else{
if ((fltIncome > 50000) && (fltIncome <= 100000)){
MiddleBracket();}
else{
if (fltIncome > 100000) {
HighBracket();}
else{
{cout >> "You have entered an invalid number";
}
}
}
}
return;
}
void LowBracket()
{
fltTaxowed = fltIncome * .05;
cout << "You owe " << fltTaxowed << " dollars!";
return;
}
void MiddleBracket()
{
fltTaxowed = ((fltIncome - 50000) * .07) + 2500;
cout << "You owe " << fltTaxowed << " dollars!";
return;
}
void HighBracket()
{
fltTaxowed = ((fltIncome - 100000) * .09) + 6000;
cout << "You owe " << fltTaxowed << " dollars!";
return;
}
The errors are attached. Thanks for any guidance you can give me. Again I am not looking for the answers, I am looking for a gentle nudge into the right direction.