C# Computer Science Homework(Abstract Class)
INSY 4306 – Assignment 4
Project (Assignment) Requirements:
· Create a subdirectory on your local machine called Projects on your C: drive (C:\Projects)
· Save all projects under this directory in a folder with the project name such as FLproject1, where FL are your initials for your first name and last name (C:\Projects\FLprojectN - N is the project number ) - e.g. "c:\Projects\YLproject1"
· Zip your project folder and submit it on line only at Blackboard by the due date.
· You can submit an assignment multiple times. The latest one will be graded. Late projects will be assessed a penalty of 10% for each hour late.
· Please include your name in the code as a comment
· ALL PROJECTS MUST BE SUBMITTED ONLY TO BLACKBOARD - DO NOT EMAIL PROJECTS TO INSTRUCTOR
· Send all communications via Blackboard email - Do not submit Projects by email!
______________________________________________________________________________
Programming Assignment Rules and Guidelines:
· All assignments are individual assignments.
· You should do the assignment by yourself, without help or assistance from your classmates or others.
· The only exception is the oral discussions on the logic of an assignment with your classmates.
· Students in the class are NOT allowed to help others in the class with the PROGRAMMING for the solution of an assignment.
· You cannot share, exchange or email code used in the assignment.
· You cannot help another student write the code for their assignment or write code for them
· You have to debug the program yourself. You cannot send it or show it to another student or other persons. Do not send code to the instructor for debugging!
· You cannot get code from another person in the class
· If your code is identical or too similar (except for variable names etc.) as another person, both your assignment and the matching assignment from the other student(s) will receive zero credit and you may be subject to plagiarism action
· DO NOT SHARE or COPY from another student.
· DO NOT WRITE CODE OR HELP WRITE CODE OR LOGIC for another student.
Assignment 3.
Due: 11/14
Create a Visual Studio C# Console Application for the following:
1. Declare an abstract class (not an interface) called “EmployeeSalary” and create a concrete class called “DoctorSalary” to manage the salary information by inheriting the EmployeeSalary class.
2. Use a List collection whose elements are DoctorSalary classes to manage the data below. 3. Write LINQ query for each of the following and display each result separately from the List collection.
(a) Sort the List by Name in ascending order and display EmpNumber, Name, NumPatient, BonusPerPatient, and BaseSalary (b) For each object in the List calculate NumPatient * BonusPerPatient + BaseSalary and name the Calculated column TotalSalary. Display the List of objects in ascending order of TotalSalary (c) Display the List of objects whose TotalSalary is greater than $15,000 in ascending order of TotalSalary.
Data: EmpNumber Name NumPatient BonusPerPatient BaseSalary 83 James Bond 150 $50 $6,000 24 Matthew Kennedy 190 $50 $6,500 7 Luck Scott 156 $53 $6,300 77 James Young 176 $49 $6,300 39 Michael Fielder 123 $79 $7,000 68 Robert King 106 $48 $7,000
- 1 -