Workload.cs 515 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ErgometerApplication
  7. {
  8. class Workload
  9. {
  10. public double watt{private set; get; }
  11. public double heartrate { private set; get; }
  12. public Workload(int watt, int heartrate)
  13. {
  14. this.watt = watt;
  15. this.heartrate = heartrate;
  16. }
  17. public double getKiloponds()
  18. {
  19. return watt / 50;
  20. }
  21. }
  22. }