Find Jobs
Hire Freelancers

Simple Project for Visual C#

$30 AUD

Selesai
Dibuat hampir 11 tahun yang lalu

$30 AUD

Dibayar ketika dikirim
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 Proyek: 4514815

Tentang proyek

9 proposal
Proyek remot
Aktif 11 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
I've already done similar project...
$32 AUD dalam 1 hari
5,0 (474 ulasan)
6,6
6,6
9 freelancer menawar dengan rata-rata $61 AUD untuk pekerjaan ini
Avatar Pengguna
Hi, I would like to do this project please. Let me know if you are interested so I can start. Thanks.
$35 AUD dalam 0 hari
5,0 (81 ulasan)
5,4
5,4
Avatar Pengguna
Please, See my private Message.
$294 AUD dalam 3 hari
5,0 (12 ulasan)
4,4
4,4
Avatar Pengguna
Let me help you
$30 AUD dalam 1 hari
5,0 (21 ulasan)
4,0
4,0
Avatar Pengguna
Hello sir. I can do this job. Please, contact me to make agreemanet Regards vladang
$35 AUD dalam 3 hari
5,0 (12 ulasan)
3,2
3,2
Avatar Pengguna
Hi, It's simple, I can do it.
$30 AUD dalam 1 hari
5,0 (4 ulasan)
3,0
3,0
Avatar Pengguna
hi. let's start.
$33 AUD dalam 3 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
I would like to do this project.
$30 AUD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Hi, i am very interested to do your work.
$30 AUD dalam 3 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera AUSTRALIA
Chadstone, Australia
4,8
17
Memverifikasi Metode pembayaran
Anggota sejak Apr 16, 2013

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.