VB.DOT NET(USE Case and event planning needed that\'s it) REQUIREMENTS Project N
ID: 666283 • Letter: V
Question
VB.DOT NET(USE Case and event planning needed that's it)
REQUIREMENTS
Project Name: Payroll Program
Purpose:
The application maintains employee records and calculates the weekly payroll for the employees of an auto parts store. The user adds new employees to the payroll file. The user selects employees to pay for the weekly payroll and the program creates the Weekly Payroll file.
Program Procedures:
When the application starts, a menu window opens that allows the user to Add New Employee, Create Payroll, or Display Weekly Payroll. For a new employee, the user enters the employee first name, last name, social security number, tax status, employee type, and pay rate, which is posted to the EmployeeMaster.txt file. For the weekly payroll, the user selects the employees to pay for the current week from a listbox and creates the payroll record for that employee. Each pay record is written to the WeeklyPayroll.txt file. The user can display the Weekly Payroll file after it has been completed. All files are comma delimited text files. A new Weekly Payroll file is created each time this option is selected.
Algorithms, Processing, and Conditions
Selecting Add New Employee opens a window to accept new employee information for entry to the EmployeeMaster.txt file. This file contains the employee first name, last name, social security number, tax status, employee type, and pay rate.
Clicking the Enter Data button causes the employee data to be validated. If valid, the data is added to the EmployeeMaster.txt file. The screen is cleared and focus is on First Name texbox.
Clicking the Finished Data Entry button causes the program to disable the data entry fields and display total of employees entered in this session.
The Add New Employee menu bar contains a File selector with a sub menu of Clear and Exit options, and a Return selector. Exit causes the application to close. Return displays the Start page.
The Clear menu option clears the data entry fields and sets the focus to the First Name text box.
Selecting Create Weekly Payroll opens a window that displays a list box containing the names of the current employees from the Employee Master.txt file sorted by last name.
Selecting an employee name displays the employee pay information. If the employee is hourly, a text box for the hours worked is displayed. User clicks the Pay Employee button. When present, Hours Worked is validated. The program calculates and displays the employee payroll information. Clicking OK writes the record to the WeeklyPayroll.txt file and places a “P” in front of that employee. Clear cancels the entry. This file contains the employee first name, last name, gross pay, tax deduction, and net pay. A new payroll file is started each time the Weekly payroll option is run.
Clicking the Finished Payroll button disables the Employee Name listbox and displays a summary of the number of employees paid and the total payroll.
The Weekly Payroll menu bar contains Exit and Return selections. Exit causes the application to close. Return displays the Start window.
Selecting Display Payroll opens a window that presents a listbox displaying the pay records for all employees paid for this payroll. The records are sorted alphabetically by last name. A summary of the current payroll is displayed below the listbox. The summary contains the total gross pay for salaried workers and, separately, for hourly workers, the total amount of taxes deducted and the total net payroll amount.
The Display Payroll menu bar contains Exit and Return options. The Exit option closes the application. The Return displays the Start window.
Notes and Restrictions
1.Use a 3-tier program structure.
2.Use a masked text box for Social Security Number.
3.All fields are required and cannot be blank.
4.Last Name and First Name must begin with an alphabetic character.
5.Employee type must be H(hourly) or S(alary).
6.Pay rate for H is hourly rate and S is annual salary; default is H.
7.Tax Status: S(ingle) – 19%; M(arried) – 15%; F(amily) – 12%; default is S
8.The minimum value for hours worked is 5. The maximum for hours worked is 60.
9.The minimum pay per hour is $12.00. The maximum pay per hour is $40.00.
10.The minimum salary is $30,000. The maximum salary is $150,000.
11.Company pays time and a half for hours worked in excess of 40 for hourly employees.
12.SalaryEmployee is the base class and HourlyEmployee is the subclass for the Business Tier.
13.The EmployeeMaster.txt is continuous. The WeeklyPayroll.txt is refreshed each time the payroll is prepared.
14.Display errors in message boxes. Program cannot continue until each error is corrected.
15.All calculations must be done in business classes.
16.All data file read and writes must be done in data classes.
17.All data files are comma delimited text files with .txt extensions
18.All data filenames must have a “YCI” suffix. Your final EmployeeMaster.txt file must have at least 15 employees split approximately 1:3 between salaried and hourly. Your final WeeklyPayroll.txt file must have at least 10 employees representing most of the pay variations. Place a copy of these files in the project folder containing the project .sln file.
19.Use String.Format for listbox output.
Explanation / Answer
Use Case Definition:
1.The User of the "Employees Auto Parts Store" Application can run or open and display the program
in normal size window screen.
2.The User adds new employees details(employee first name, last name, social security number, tax status,
employee type, and pay rate)to the payroll file after validation.
3.The User selects employees to pay for weekly and the program creates the Weekly Payroll file with
employee first name, last name, gross pay, tax deduction, and net pay for each employee.
4.The user clicks (Print) finished payroll to display a summary of the number of employees paid and
the total payroll in an uneditable form control.
5.The User also clicks (Print) the summary of employee payroll which contains the total gross pay for
salaried workers and, separately, for hourly workers, the total amount of taxes deducted and the
total net payroll amount.
6.The User clicks (Exit) to end the application.
EventPlanning:
1) Event (Form_Load)
- Displays form with 3 menus
2) Add New Employee_Click
- opens a window to accept new employee information (employee first name, last name, social security number,
tax status, employee type, and pay rate for entry to the EmployeeMaster.txt file
3) EnterData_Click
- validates the data to enter in EmployeeMaster.txt file
- The screen is cleared and focus is on First Name textbox
4) Finished_DataEntry_Click
- Disables the data entry fields and display total of employees
entered in this session in the form.
5) AddNewEmployeeMenu_Click
- Clear: Clears the controls in form and sets the focus to the First Name text box.
- Exit: Ends the application
- Return: Displays the Start page
6) CreateWeeklyPayroll_Click
- displays a list box containing the names of the current employees from the Employee Master.txt file sorted
by last name
7) EmployeeNameListBox_Select
- displays the employee pay information
- if hourly employee, A textbox will be displayed to enter hours worked
8) PayEmployee_Click
- Hours Worked is validate and displays the employee details in form.
9) Finished Payroll button_Click
- disables the Employee Name listbox and displays a summary of the number of employees
paid and the total payroll.
10)WeeklyPayrollMenu_Click
- Exit: Ends the application
- Return: Displays the Start page
11)DisplayPayroll_Click
- presents a listbox displaying the pay records for all employees paid for
this payroll sorted alphabetically by lastname.
- summary of the current payroll is displayed in form
12) DisplayPayrollMenu_Click
- Exit: Ends the application
- Return: Displays the Start page
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.