fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6. using System.Threading.Tasks;
  7.  
  8. namespace Assignment1
  9. {
  10. internal class Employee
  11.  
  12.  
  13. {
  14.  
  15.  
  16. private String Name;
  17.  
  18. private int Number;
  19.  
  20. private decimal Payrate;
  21.  
  22. private double Hours;
  23.  
  24. private decimal Grosspay;
  25.  
  26.  
  27.  
  28. public Employee(String name, int Number, decimal Payrate, double Hours, decimal Grosspay)
  29. {
  30.  
  31. this.Name = name;
  32. this.Number = Number;
  33. this.Payrate = Payrate;
  34. this.Hours = Hours;
  35. this.Grosspay = Grosspay;
  36.  
  37. }
  38.  
  39. public decimal getGrosspay;
  40. public double getHours;
  41. public String getName() { return Name; }
  42. public decimal getPayrate;
  43. public int getNumber() { return Number; }
  44.  
  45. public decimal getTotal() { return Payrate; }
  46.  
  47. public String toString() { return toString; }
  48.  
  49. public setHours(double hours) {
  50.  
  51. this.Hours = hours;
  52. }
  53. public setName(String name) {
  54.  
  55. this.Name = name;
  56. }
  57.  
  58. public setNumber(int number) {
  59.  
  60. this.Number=number;
  61. }
  62.  
  63. public setPayrate(decimal payrate) {
  64.  
  65. this.Payrate=payrate;
  66. }
  67.  
  68. public setGrosspay(double grosspay) {
  69.  
  70. this.getGrosspay = Grosspay;
  71. }
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. }
  83. }
  84.  
  85.  
Success #stdin #stdout 0.03s 25884KB
stdin
Standard input is empty
stdout
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace Assignment1
{
    internal class Employee


    {


        private String Name;

        private int Number;

        private decimal Payrate;

        private double Hours;

        private decimal Grosspay;



        public Employee(String name, int Number, decimal Payrate, double Hours, decimal Grosspay)
        {

            this.Name = name;
            this.Number = Number;
            this.Payrate = Payrate;
            this.Hours = Hours;
            this.Grosspay = Grosspay;

        }

        public decimal getGrosspay;
        public double getHours;
        public String getName() { return Name; }
        public decimal getPayrate;
        public int getNumber() { return Number; }

        public decimal getTotal() { return Payrate; }

        public String toString() { return toString; }

        public setHours(double hours) {

            this.Hours = hours;
        }
        public setName(String name) {

            this.Name = name;
        }

        public setNumber(int number) { 
        
        this.Number=number;
        }

        public setPayrate(decimal payrate) { 
        
        this.Payrate=payrate;
        }

        public setGrosspay(double grosspay) {

            this.getGrosspay = Grosspay;
        }










    }
}