Find Jobs
Hire Freelancers

Simple Project for Visual C#

$30 AUD

Terminado
Publicado hace casi 11 años

$30 AUD

Pagado a la entrega
Your task for this project is to develop part of an object-oriented program for a human resources system for making payments for employees. Your system must handle two types of payments: • Fixed payments – where the amount paid to an employee is based upon a fixed amount, with no variation due to performance; • Prorata payments – where the amount paid to an employee depends upon performance factors, e.g., hours worked or value of goods sold. Your system must also handle three ways of paying employees: • Salary – an employee who is paid based on an annual rate (fixed); • Wage – an employee who is paid hourly (prorata); • Sales commission – an employee who receives a base salary plus receives an additional bonus based on percentage of sales (fixed and prorata). Your program must include the following: • You must apply both inheritance and interfaces in your solution – this will require defining more than one class and interface; • You must demonstrate accessing your data polymorphically in several ways, including the use of both ToString() method and your own polymorphic methods; • You must use the provided Employee class and (partially complete) Main method; Note that the actual classes, inheritance hierarchy, and interfaces that you use in your program are up to you. Marks will be awarded for the correct application of object-oriented concepts learned in the unit to date, including: • Class definition – instance variables, properties, and, methods; • Correct application of abstraction and encapsulation; • Correct application of inheritance and interfaces; • Correct demonstration of polymorphic behavior; Hint 1: Before starting, consider carefully how your program should be structured in terms of inheritance and interfaces. Taking the time to decide on how to represent these concepts in your application will save you a great deal of time later. Hint 2: If you are receiving error messages about inconsistent accessibility, make sure you use the public accessibility level on each of your classes. Note: Your output does not need to match the example below, however your output must similarly break down the information (the second and third sets of output below represent the remuneration data being accessed polymorphically in different ways). Workers: Benita's remuneration: $60,000.00 salary Pete's remuneration: $35,000.00 base salary plus 5.00% of total sales Travis's remuneration: $25.00 hourly wage wage Fixed payment remunerations: Benita receives $60,000.00 salary Pete receives $35,000.00 base salary Prorata payment remunerations: Pete receives 5.00% of total sales Travis receives $25.00 hourly wage Note: The following class must be used in your program, unchanged. using System; namespace Project_2 { public class Employee { private string _Name; public string Name { get { return _Name; } } private Remuneration _Remuneration; public Remuneration Remuneration { get { return _Remuneration; } } public Employee(string name, Remuneration remuneration) { _Name = name; _Remuneration = remuneration; } public override string ToString() { return [login to view URL]("{0}", _Name); } } } Program Class / Main Method Note: The code provided in the Main method below must be used in your program, unchanged. You may write your own code in the Main method at the indicated location. using System; namespace Project_2 { public class Program { static void Main(string[] args) { Employee [] workers = new Employee[] { new Employee("Benita", new Salary(60000.00M)), new Employee("Pete", new SalesCommission(35000.00M, 0.05M)), new Employee("Travis", new Wage(25.00M)) }; [login to view URL]("Workers:"); foreach (Employee emp in workers) [login to view URL]("\t{0}'s remuneration: {1}", emp, [login to view URL]); [login to view URL](); // YOUR CODE GOES HERE... } } }
ID del proyecto: 4514815

Información sobre el proyecto

9 propuestas
Proyecto remoto
Activo hace 11 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I've already done similar project...
$32 AUD en 1 día
5,0 (474 comentarios)
6,6
6,6
9 freelancers están ofertando un promedio de $61 AUD por este trabajo
Avatar del usuario
Hi, I would like to do this project please. Let me know if you are interested so I can start. Thanks.
$35 AUD en 0 día
5,0 (81 comentarios)
5,4
5,4
Avatar del usuario
Please, See my private Message.
$294 AUD en 3 días
5,0 (12 comentarios)
4,4
4,4
Avatar del usuario
Let me help you
$30 AUD en 1 día
5,0 (21 comentarios)
4,0
4,0
Avatar del usuario
Hello sir. I can do this job. Please, contact me to make agreemanet Regards vladang
$35 AUD en 3 días
5,0 (12 comentarios)
3,2
3,2
Avatar del usuario
Hi, It's simple, I can do it.
$30 AUD en 1 día
5,0 (4 comentarios)
3,0
3,0
Avatar del usuario
hi. let's start.
$33 AUD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
I would like to do this project.
$30 AUD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, i am very interested to do your work.
$30 AUD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de AUSTRALIA
Chadstone, Australia
4,8
17
Forma de pago verificada
Miembro desde abr 16, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.