c++ help

hi everyone
im a beginner at c++
my goal here is to add all the aid together and also to use a call function besides main()
heres my work, pls help
thank you



#include <iostream>
using namespace std;

int main()
{
cout << "Lemme Forecast Your FAFSA" << endl;
int income;
cout << "Enter your adjusted gross income:" << endl;
cin >> income;
int j;
j=1;j=j-1;
cout << "Can someone claim you as a dependent? [1=yes/0=no]:" << endl;
cin >> j;
if (income>19000)
cout << "Your Work-Study Award is not available for your income level." << endl;
else
cout << "Your Work-Study Award (if available)=1465" << endl;
cout << "Your Stafford Loan award (if needed)=9500" << endl;
if (income>20000)
cout << "Your Pell Grant=" << 5730-3200-500*((income-20000)/1000)-750*j << endl;
else if (income>12000)
cout << "Your Pell Grant=" << 5730-400*((income-12000)/1000)-750*j << endl;
else
cout << "Your Pell Grant=" << 5730-750*j<< endl;
cout << "Total Aid Available For You=" << endl;
return 0;
}
Topic archived. No new replies allowed.