A basic C# Assginment to be done in Visual Studio
Budget: $10 – $30 USD
I need a visual studio project for the following:
MVC Web App Class is StudentWorkerModel (inherited from Student) with properties name, id, hourly pay, hours worked, and method weeklySalary(). Notes some properties might belong in the Student class. Make sure your method calculates the weekly salary using the class methods, there is no need to pass any values to the method. Set the values in the code, and on the page, display student name and the weekly salary.
The project must be a Web Application
It mus have following GUI components:
- Button
- Clear
User Input for necessary information in your model
Model should include input validation and print to GUI when non-numeric input or invalid input is input
Header must include problem description
Must include at least 2 classes
Demonstrate inheritance
Demonstrate method overloading
Demonstrate method overriding
Follow naming conventions
Follow the class style (Constructors, Properties, methods, etc)
Must include Unit tests with good coverage (include edge cases and use cases)
Test your StudentWorker Model:
Business logic: Workers can work 1 to 15 per week and pay rate starts at $7.25 and can be up to $14.75 per hour. If there is an issue, pay should be returned as zero. The administrator will check for zero paychecks to fix errors and re-run payroll for those individuals. NOTE: Think about if it makes sense to throw exceptions in the class. Do you know how to handle those in the Web App view? It might be better to avoid them and use input validation to handle input. What can you set the salary to if there is bad input?
Add Unit Tests:
• Use appropiate test names
• Follow Unit Testing style shown in class
o Use variables actual and expected (when needed)
o Use comments to create code blocks appropriately
// Arrange
// Act
// Assert
• Test 1. Invalid hours worked (too low)
• Test 2. Invalid hours worked (too high)
• Test 3. Invalid hourly salary (too low)
• Test 4. Invalid hourly salary (too high)
• Test 5. Valid test
Submit a zip file of the Solution (There should be two projects)
MVC Web App Class is StudentWorkerModel (inherited from Student) with properties name, id, hourly pay, hours worked, and method weeklySalary(). Notes some properties might belong in the Student class. Make sure your method calculates the weekly salary using the class methods, there is no need to pass any values to the method. Set the values in the code, and on the page, display student name and the weekly salary.
The project must be a Web Application
It mus have following GUI components:
- Button
- Clear
User Input for necessary information in your model
Model should include input validation and print to GUI when non-numeric input or invalid input is input
Header must include problem description
Must include at least 2 classes
Demonstrate inheritance
Demonstrate method overloading
Demonstrate method overriding
Follow naming conventions
Follow the class style (Constructors, Properties, methods, etc)
Must include Unit tests with good coverage (include edge cases and use cases)
Test your StudentWorker Model:
Business logic: Workers can work 1 to 15 per week and pay rate starts at $7.25 and can be up to $14.75 per hour. If there is an issue, pay should be returned as zero. The administrator will check for zero paychecks to fix errors and re-run payroll for those individuals. NOTE: Think about if it makes sense to throw exceptions in the class. Do you know how to handle those in the Web App view? It might be better to avoid them and use input validation to handle input. What can you set the salary to if there is bad input?
Add Unit Tests:
• Use appropiate test names
• Follow Unit Testing style shown in class
o Use variables actual and expected (when needed)
o Use comments to create code blocks appropriately
// Arrange
// Act
// Assert
• Test 1. Invalid hours worked (too low)
• Test 2. Invalid hours worked (too high)
• Test 3. Invalid hourly salary (too low)
• Test 4. Invalid hourly salary (too high)
• Test 5. Valid test
Submit a zip file of the Solution (There should be two projects)