AppleCyder (NovaSprite)
AppleCyder (NovaSprite)
Explore posts from servers
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
Ok thank you
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
So should I put things like "Week 1" instead?
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
I don't know what autoproperties are, I hardly understand get/set methods so I'm just gonna stick to what I'm familiar with
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
Is the TimeSheetEntry good so far or am I way off?
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
using System;

namespace UserInterface
{

class Employee
{
// Attributes
private string name;
private string supervisorName;
// Constructor
public Employee(string name, string supervisorName)
{
this.name = name;
this.supervisorName = supervisorName;
}
// Methods to set and get employee name and supervisor name
public void SetName(string name)
{
this.name = name;
}
public string GetName()
{
return name;
}
// Similarly, define methods to set and get supervisor name
public void SetsupervisorName(string supeervisorName)
{
this.supervisorName = supervisorName;
}
public string GetsupervisorName()
{
return supervisorName;
}

}
class TimeSheetEntry
{
// Attributes
// Define attributes and methods similar to Employee class for TimeSheetEntry
private string Sun;
private string Mon;
private string Tues;
private string Wed;
private string Thurs;
private string Fri;
private string Sat;

// Constructor, methods for adding hours, marking days, validation, and calculating total hours
public TimeSheetEntry(string Sun, string Mon, string Tues, string Wed, string Thurs, string Fri, string Sat)
{
this.Sun = Sun;
this.Mon = Mon;
this.Tues = Tues;
this.Wed = Wed;
this.Thurs = Thurs;
this.Fri = Fri;
this.Sat = Sat;

}
}
class PayrollCalculator
{
// Methods to calculate regular and overtime pay, generate payroll information
}
using System;

namespace UserInterface
{

class Employee
{
// Attributes
private string name;
private string supervisorName;
// Constructor
public Employee(string name, string supervisorName)
{
this.name = name;
this.supervisorName = supervisorName;
}
// Methods to set and get employee name and supervisor name
public void SetName(string name)
{
this.name = name;
}
public string GetName()
{
return name;
}
// Similarly, define methods to set and get supervisor name
public void SetsupervisorName(string supeervisorName)
{
this.supervisorName = supervisorName;
}
public string GetsupervisorName()
{
return supervisorName;
}

}
class TimeSheetEntry
{
// Attributes
// Define attributes and methods similar to Employee class for TimeSheetEntry
private string Sun;
private string Mon;
private string Tues;
private string Wed;
private string Thurs;
private string Fri;
private string Sat;

// Constructor, methods for adding hours, marking days, validation, and calculating total hours
public TimeSheetEntry(string Sun, string Mon, string Tues, string Wed, string Thurs, string Fri, string Sat)
{
this.Sun = Sun;
this.Mon = Mon;
this.Tues = Tues;
this.Wed = Wed;
this.Thurs = Thurs;
this.Fri = Fri;
this.Sat = Sat;

}
}
class PayrollCalculator
{
// Methods to calculate regular and overtime pay, generate payroll information
}
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
Especially where I have the days of the weeks listed
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
This is what has been done so far, I'm wondering if I am on the right path concerning the class TimeSheetEntry.
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
No description
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
No description
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
These are the instructions:
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
No description
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/8/2024 in #help
Am I doing this right?
No description
19 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
It finally worked, it just took a few renames in the code, thank you all for the help! Hopefully I'll get some sort of grade even if it's late
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
Ok I'll try
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
true
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
where it says Account and is underlined red
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
public class should have a different name right?
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
No description
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
I'll do that in my next assignment
66 replies
CC#
Created by AppleCyder (NovaSprite) on 5/7/2024 in #help
I am about done with the assignment but it won't run, why?
makes sense I don't do that often enough
66 replies