using System.Collections;
using System.Collections.Generic;
public static void Main()
public TrinhDo(int td, float hspc){
private float hesophucap;
get { return hesophucap; }
set { hesophucap = value; }
public ChucVu(int cv, float hspc){
get { return hesophucap; }
set { hesophucap = value; }
List<TrinhDo> tds = new List<TrinhDo>{
new TrinhDo(1,(float)0.1),
new TrinhDo(2,(float)0.2),
new TrinhDo(3,(float)0.3),
new TrinhDo(4,(float)0.4)
List<ChucVu> cvs = new List<ChucVu>{
new ChucVu(1,(float)0.15),
new ChucVu(2,(float)0.25),
new ChucVu(3,(float)0.35),
new ChucVu(4,(float)0.45)
get { return mavienchuc; }
set { mavienchuc = value; }
get { return luongcoban; }
set { luongcoban = value; }
get { return hesoluong; }
set { hesoluong = value; }
set { fullname = value; }
float phuCap(int td, int cv){
return tds.Find(x=>x.td == td).hspc + cvs.Find(x=>x.cv == cv).hspc;
float tinhLuong(int td, int cv){
return hesoluong * luongcoban * phuCap(td, cv);
class GiangVien: VienChuc{
public GiangVien(int td){