Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i need help with my project. Its a 1040 ez program on visual basic 2012 Here\'s

ID: 3818933 • Letter: I

Question

i need help with my project.

Its a 1040 ez program on visual basic 2012

Here's what I have to do:

For your project, you will implement a Federal 1040 EZ income tax form that will calculate a person’s income tax for the year. There are several fields that are not required for the final project. These include:
  
Address Information: Foreign country name, Foreign province/state/county, Foreign postal code
Line 5 Checkboxes only – we are assuming the filer is not a dependent
Lines 8B, 13 B & D
Third Party Designee section
Sign here – omit the signature line itself, but use date occupation & phone number
Paid Preparer section

Application Requirements:
Your final application should correctly calculate the taxes owed or refund due to the user who fills it out.
The application should allow the user to save their work and open it later.
The application should allow the user to print their taxes in an easily readable format that includes the address block, and both the line numbers from the form, as well as those amounts. You should also include a signature line, and insert the date, occupation & phone number from the form.
Use a combo box for the user to select their state, a checkbox group for the Presidential Election Campaign, a radio group for 13c with the following options: (Check, Direct Deposit).
It should include a file menu that allows the user to open, save or print.

Programming Requirements:
Use 2 or more forms and at least 1 module, 1 constant, 1 global, 1 loop, 1 if-else statement, 1 switch statement, 1 procedure or method.
All fields should be validated for input, using appropriate methods (try/catch, not String.empty, etc.). If your app crashes due to not validating input, you will be penalized 50 points.

Notes:

All fields dealing with dollar amounts should use the currency format. (“c”)
Lines 4, 6, 9, 10, 12, 13a & 14 are all calculations. They depend on other information entered into the form.
The application should warn the user if they are ineligible to use the 1040EZ form (Line 2 -Taxable Interest is more than $1500 or Line 6 - Taxable Income more than $100,000).
The tax form should include a radio group that asks if it is a single or joint return. If a single return is selected, all fields relating to the spouse can be disabled, and $10,300 should be entered as the amount for line 5. If a joint return is selected, $20,600 should be entered as the amount for line 5.
Line 8a Earned Income Credit– If Line 4 is greater than $14,000 for single or $28,000 for joint, set the amount to $0. If Line 4 is less than $8,000 for single or $16,000 for married filing jointly, set the amount here to $500.00. Each dollar earned over $8,000 for single or two dollars over $16,000 for joint reduced the EIC by .0833 %.

Line 10 – You will use the following table to determine the tax:

Rate   Single Filers   Married Joint Filers
10%   $0 to $9,275   $0 to $18,550
15%   $9,275 to $37,650   $18,550 to $75,300
25%   $37,650 to $91,150   $75,300 to $100,000
28%   $91,150 to $100,000  

This is a progressive tax system. This means that each dollar earned above a certain level is taxed at a higher percentage. For instance, a single filer who makes $40,000 will have the first $9275 taxed at 10%, the next $28,375 taxed at 15%, and the last $2,350 taxed at 25%.
Line 11 – If the Full Year coverage box is not checked, the amount entered here will be the higher of these two amounts: 2% of line 4, or $325 per adult ($325 single, $650 joint), but is not to exceed $975.
Lines 13a & 14 – If the filer is getting a refund, you should only display the refund amount. If the filer has to pay, you should only display the payment amount both on the screen & on the printed page.

Explanation / Answer

#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>

class iTax
{
public:
char name[90],ads[90],occ[90];
int ID;

void getit(char *a)
{
strcpy(occ,a);
cout<<"Enter your name: ";
gets(name);
cout<<"Enter your ID: ";
cin>>ID;
cout<<"Give your address in detail: ";
gets(ads);
}

void showit()
{

cout<<"
Name : "<<name;
cout<<"
Occupation :"<<occ;
cout<<"
ID No. : "<<ID;
cout<<"
Address : "<<ads;
}
};

class common:public iTax

{
public:
float sal,tax;

void get()
{
cout<<"How much you earn in a year: ";
cin>>sal;
if(sal<50000)
{
tax=sal*(.03);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
if((sal>50000)&&(sal<=100000))
{
tax=sal*(.07);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
if((sal>100000)&&(sal<=150000))
{
tax=sal*(.10);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
if((sal>150000)&&(sal<=200000))
{
tax=sal*(.15);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
if((sal>200000)&&(sal<=250000))
{
tax=sal*(.20);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
if((sal>250000)&&(sal<=300000))
{
tax=sal*(.23);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
if(sal>300000)
{
tax=sal*(.25);
cout<<"Your IncomeTax is= "<<tax<<"tk."<<endl;
}
}


void showc()
{
cout<<"
Salary : "<<sal<<" tk. in a year";
cout<<"
Tax : "<<tax<<" tk."<<"

";

}

};

class p0:public iTax
{

public:
float sal,tax;
void getz()
{
cout<<"Enter your salary in a year: ";
cin>>sal;
cout<<"You have no income tax.
";
}
void showz()
{
cout<<"
Salary : "<<" tk. in a year"<<sal;
cout<<"
Tax : 0 tk.";
}
};

class p15:public iTax
{

public:
float sal,tax;
void getfn()
{
cout<<"Enter salary in a year: ";
cin>>sal;
tax=sal*(.15);
cout<<"The income tax is: "<<tax<<"tk."<<endl;
}
void showfn()
{
cout<<"
Salary : "<<" tk. in a year"<<sal;
cout<<"
Tax : "<<tax<<" tk."<<"

";
}
};

class p20:public iTax
{
public:
float sal,tax;
void getty()
{
cout<<"Enter salary in a year: ";
cin>>sal;
tax=sal*(.20);
cout<<"The income tax is: "<<tax<<"tk."<<endl;
}
void showty()
{
cout<<"
Salary : "<<" tk. in a year"<<sal;
cout<<"
Tax : "<<tax<<" tk."<<"

";
}
};

class p25:public iTax
{
public:
float sal,tax;
void gettf()
{
cout<<"Enter salary in a year: ";
cin>>sal;
tax=sal*(.25);
cout<<"The income tax is: "<<tax<<"tk."<<endl;
}
void showtf()
{
cout<<"
Salary : "<<" tk. in a year"<<sal;
cout<<"
Tax : "<<tax<<" tk."<<"

";
}
};


int main()
{

common c[20];
p0 z[20];
p15 fn[20];
p20 ty[20];
p25 tf[20];
iTax it;

int i,j,index,ID;
char a[70];

clrscr();
do{
cout<<"   INCOME TAX CALCULATION"
<<"

What do you want to do?
1.Asking for IncomeTax view."
<<"
2.Search
3.Exit.
"
<<"
Make your choice= ";
cin>>index;

switch(index)
{

case 1:
cout<<"
How many memebers ? ";
cin>>j;
if(j==0)
cout<<"Please enter a valid number.

";

for(i=1;i<=j;i++)
{
cout<<"
Enter occupation name: ";
cin>>a;

if((stricmp(a,"farmer")==0)||(stricmp(a,"student")==0))
{
z[i].getit(a);
z[i].getz();
}

else if(stricmp(a,"business")==0)
{
ty[i].getit(a);
ty[i].getty();
}
else if(stricmp(a,"export")==0)
{
tf[i].getit(a);
tf[i].gettf();
}
else if(stricmp(a,"engineer")==0)
{
fn[i].getit(a);
fn[i].getfn();
}
else
{
c[i].getit(a);
c[i].get();
}
}
break;


case 2:
cout<<"
Give ur employee ID=";
cin>>ID;

if((ID!=c[i].ID)&&(ID!=z[i].ID)&&(ID!=fn[i].ID)&&(ID!=ty[i].ID)&&(ID!=tf[i].ID))
cout<<"No match found.....

";


for(i=1;i<=j;i++)

{
if(ID==c[i].ID)
{
c[i].showit();
c[i].showc();
cout<<"Press any key.......

";
getch();
}

if(ID==z[i].ID)
{
z[i].showit();
z[i].showz();
cout<<"Press any key.......

";
getch();
}

if(ID==fn[i].ID)
{
fn[i].showit();
fn[i].showfn();
cout<<"Press any key.......

";
getch();
}

if(ID==ty[i].ID)
{
ty[i].showit();
ty[i].showty();
cout<<"Press any key.......

";
getch();
}

if(ID==tf[i].ID)
{
tf[i].showit();
tf[i].showtf();
cout<<"Press any key.......

";
getch();
}
} break;


case 3:
break;
default:
cout<<"
a
Wrong choice Try again...";
cout<<"
Press any key to return to main menu...";
getch();
break;
}

}while(index!=3);
return 0;