Question
C# Create a class object called Employee which included six private variables: First Name Last Name ID number Initial Salary Start Year Current Salary Methods
C#
Create a class object called Employee which included six private variables:
First Name
Last Name
ID number
Initial Salary
Start Year
Current Salary
Methods : Constructurs
properties (cursalary is a read-only)
Calccursalary() calculate the current slarat based on a 5 % yearly increment from the startyear
Create an EmployeeDemo class.
In the main function, the program prompts user to enter the current year.
Then, the program reads three company employee information from the EmployeeInfo.txt file and save the data into three objects.
After saving the data, the program prompts user to enter the range of current salary that you want to see and display the employees information whose current salary is in the range in a descending order.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started