From e44e600919f8ba6e6f1fc29c7640ec58ea85b2ed Mon Sep 17 00:00:00 2001 From: Visesh-A <124649657+Visesh-A@users.noreply.github.com> Date: Mon, 6 Mar 2023 23:29:24 +0530 Subject: [PATCH 1/3] Delete Attendance directory --- Attendance/Attendance.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Attendance/Attendance.cs diff --git a/Attendance/Attendance.cs b/Attendance/Attendance.cs deleted file mode 100644 index 57db28c..0000000 --- a/Attendance/Attendance.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -namespace EmployeeWageComputation -{ - public class Attendance - { - const int IS_PRESENT = 1; - public void attendance() - { - Random random = new Random(); - int check = random.Next(0, 2); - if (check == IS_PRESENT) - Console.WriteLine("Employee is Present"); - else - Console.WriteLine("Employee is Absent"); - } - } -} \ No newline at end of file From cc4c1bfa63976ff4e18b2603f38822262c006912 Mon Sep 17 00:00:00 2001 From: Visesh-A <124649657+Visesh-A@users.noreply.github.com> Date: Mon, 6 Mar 2023 23:29:39 +0530 Subject: [PATCH 2/3] Delete EmployeeWage directory --- EmployeeWage/EmployeeWage.cs | 41 -------------------------------- EmployeeWage/EmployeeWage.csproj | 10 -------- EmployeeWage/EmployeeWage.sln | 25 ------------------- 3 files changed, 76 deletions(-) delete mode 100644 EmployeeWage/EmployeeWage.cs delete mode 100644 EmployeeWage/EmployeeWage.csproj delete mode 100644 EmployeeWage/EmployeeWage.sln diff --git a/EmployeeWage/EmployeeWage.cs b/EmployeeWage/EmployeeWage.cs deleted file mode 100644 index 7f0931b..0000000 --- a/EmployeeWage/EmployeeWage.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -namespace EmployeeWageComputation -{ - public class EmployeeWage - { - const int IS_PRESENT = 1, WAGE_PER_HR = 20, FULL_DAY_HR = 8, PART_TM_HR = 4, FULL_TIME = 0, PART_TIME = 1, TOTAL_WORKING_DAYS = 20, TOTAL_WORKING_HOURS = 100; - public void Attendance() - { - Random random = new Random(); - int check = random.Next(0, 2); - if (check == IS_PRESENT) - Console.WriteLine("Employee is Present"); - else - Console.WriteLine("Employee is Absent"); - } - public void DailyEmWages() - { - int empHrs = 0; - Random random = new Random(); - for (int i = 0; i <= TOTAL_WORKING_DAYS && empHrs <= TOTAL_WORKING_HOURS; i++) - { - int check = random.Next(0, 3); - switch (check) - - { - case FULL_TIME: - empHrs += FULL_DAY_HR; - break; - case PART_TIME: - empHrs += PART_TM_HR; - break; - default: - empHrs += 0; - break; - } - } - int wage = WAGE_PER_HR * empHrs; - Console.WriteLine(wage); - } - } -} \ No newline at end of file diff --git a/EmployeeWage/EmployeeWage.csproj b/EmployeeWage/EmployeeWage.csproj deleted file mode 100644 index 74abf5c..0000000 --- a/EmployeeWage/EmployeeWage.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - - diff --git a/EmployeeWage/EmployeeWage.sln b/EmployeeWage/EmployeeWage.sln deleted file mode 100644 index f3d753f..0000000 --- a/EmployeeWage/EmployeeWage.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.5.33414.496 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmployeeWage", "EmployeeWage.csproj", "{4B5EF48F-A4B1-4BD8-ACD3-DEEDD5D9377C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4B5EF48F-A4B1-4BD8-ACD3-DEEDD5D9377C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4B5EF48F-A4B1-4BD8-ACD3-DEEDD5D9377C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4B5EF48F-A4B1-4BD8-ACD3-DEEDD5D9377C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4B5EF48F-A4B1-4BD8-ACD3-DEEDD5D9377C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {FB243833-A826-481F-ADA1-345F317B3C82} - EndGlobalSection -EndGlobal From 4132e4581ba2232f3c395bf9b73a5cd4311a5d98 Mon Sep 17 00:00:00 2001 From: Visesh-A <124649657+Visesh-A@users.noreply.github.com> Date: Thu, 16 Mar 2023 23:36:38 +0530 Subject: [PATCH 3/3] Rename DailyWage.cs to EmployeeWage.cs --- DailyWage/{DailyWage.cs => EmployeeWage.cs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename DailyWage/{DailyWage.cs => EmployeeWage.cs} (99%) diff --git a/DailyWage/DailyWage.cs b/DailyWage/EmployeeWage.cs similarity index 99% rename from DailyWage/DailyWage.cs rename to DailyWage/EmployeeWage.cs index 043b6ce..23b67a1 100644 --- a/DailyWage/DailyWage.cs +++ b/DailyWage/EmployeeWage.cs @@ -19,4 +19,4 @@ public void DailyEmWages() Console.WriteLine("Daily Employee Wage is " + wage); } } -} \ No newline at end of file +}