Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Make a . NET Console App using C# in Visual Studio and name it as A 1 YourFirstnameLastname. 2 . Implement the wage

1. Make a .NET Console App using C# in Visual Studio and name it as A1YourFirstnameLastname.
2. Implement the wage calculator for employees which is capable of doing the following:
Add, edit, and delete employees.
View and search employees.
3. The application must be menu-based app:
1- Add Employee
2- Edit Employee
3- Delete Employee
4- View Employees
5- Search Employee
6- Exit
4. When selecting Add, Edit or Delete Employee option from the above menu, display a submenu which asks which type of employee is being added, edited, or deleted.
5. For example, if user selects 1- Add Employee, then display the following sub-menu:
1- Add Hourly Employee
2- Add Commission Employee
3- Add Salaried Employee
4- Add Salary Plus Commission Employee
5- Back to Main Menu
Page 2 of 5
6. The menu should run continuously until the user quits the application.
Validate the inputs. Any invalid input should not crash the app.
Display user-friendly messages wherever necessary.
Always display the employee info in a tabular form.
Always display column headers when displaying employee info.
Format the numeric values with appropriate symbols, such as currency amount with $
symbol, commission rate with % symbol.
7. NOTE: At no point should the application save any information to disk. All information is
stored and managed in memory using a generic collection. The use of collections and the
object-oriented design of the solution are an important part of the evaluation of your
submission.
8. Add Employee:
When adding a new employee, ask the user for all the required info and then save it
to the collection.
Then display a success message and print all the employees from that type of
employee category in a tabular form to verify that the new employee is added.
NOTE: When adding a new employee, do not ask for Employee ID, rather generate a
new one. The Employee ID must be unique for every employee, just like a primary key
in database.
9. Edit Employee:
When editing an employee info, first display a list of all employees from the selected
category.
Then ask the user for the Employee ID of the employee that user wants to edit and
fetch that employee from the collection.
And ask the user for all the required info and then display a success message.
Print all the employees from that category in a tabular form to verify that the
employee is edited.
NOTE: Do not ask the user to edit the Employee ID. It must be unique for every
employee and must not be edited.
10. Delete Employee:
When deleting an employee info, first display a list of all employees from the selected
category.
Then ask the user for the Employee ID of the employee that user wants to delete and
fetch that employee from the collection.
And remove the employee from the collection and then display a success message.
Print all the employees from that category in a tabular form to verify that the
employee is deleted.
Page 3 of 5
11. View Employees:
Display all the employees in a tabular form.
Display column headers.
Format currency and percentage amounts with appropriate symbols.
Categorize the employees based on their employment type.
oCheck the sample output video to get an idea.
12. Search Employees:
Ask the user to enter the employees name and display all the employees that match
the search keyword.
Partial match must fetch the results.
Match should be case-insensitive, meaning if user enters lowercase john and the
employees name is John(with uppercase J), it must fetch the employee.
13. The employees belong to four different categories: hourly, commission based, fixed weekly
salary, and fixed weekly salary plus commission based.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the three most common methods for analyzing capital needs?

Answered: 1 week ago