Answer to Question #204895 in C++ for shahil

Question #204895

which contains a list of Annual (Gross) income records of employees in a firm, it should simply print the contents of the file in suitable format on the screen. (Fields (columns) to display in output are: lastname initial, FNPF#, age, GrossIncome and Resident) . Program then prints the list in ascending order of Gross Income. (Fields (columns) to display in output are: FNPF# and GrossIncome) [An algorithm to sort an array is given at the end of this project description Then the user is asked to enter the search initial. If there are employees who have that initial, program prints their record, otherwise a if no students have last names matching the search initial a “no matching record found” message is displayed.  The program then calculates and prints to a file IncomeTax.txt, the tax corresponding to the provided Gross Income and the Net Income.exit program


1
Expert's answer
2021-06-09T16:03:57-0400
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
class Employee
{
public:
    string name,resident,initial;
    float gross_income;
    int FNPF,age;
};
int main()
{
    Employee e1;
    cout<<"Enter intial : ";
    cin>>e1.initial;
    if(e1.initial=="")
    {
        cout<<"no matching record found";
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog