u/FinalFill847

WorkTask constructor causes CS1503 errors in teacher tests
▲ 0 r/csharp

WorkTask constructor causes CS1503 errors in teacher tests

I’m working on a C# assignment (MyPlanner), and my code compiles locally, but the teacher’s tests fail with CS1503 errors.

The errors say things like:

  • cannot convert from int to string
  • cannot convert from string to DateTime
  • cannot convert from string to double

https://preview.redd.it/pbzujx99vv0h1.png?width=2570&format=png&auto=webp&s=7129d5af80ca9972ce912804a4f5c5d3b51dcc94

  • here i have my worktask file >

​

public WorkTask(string title, string description, DateTime dueDate, double estimatedTime, double timeWorked = 0)
        : base(title, description, dueDate)
    {
        this._estimatedTime = estimatedTime;
        this._timeWorked = Math.Min(timeWorked, estimatedTime);
    }


planner.cs 


private void CreateWorkTask(string title, string description, DateTime dueDate)
    {
        Console.Write("worked time (hour): ");
        string twStr = Console.ReadLine() ?? "0";
        Console.Write("Estimated time (hour): ");
        string etStr = Console.ReadLine() ?? "0";


        if (!double.TryParse(twStr, out double tw) || !double.TryParse(etStr, out double et))
        {
            Console.WriteLine("not valid timeformat.");
            return;
        }
        this._handler.AddTask(new WorkTask(title, description, dueDate, et, tw));


        Console.WriteLine("work assigment created!");
    }


    private void CreatePrivateTask(string title, string description, DateTime dueDate)
    {
        Console.Write("Place: ");
        string location = Console.ReadLine() ?? "";


        this._handler.AddTask(new PrivateTask(title, description, location, dueDate));
        Console.WriteLine("personal assigment created!");
    }
reddit.com
u/FinalFill847 — 1 day ago
▲ 1 r/Maya

trying to fix overlapping, but i dont how to do that

https://preview.redd.it/brmnr3k9vq0h1.png?width=3360&format=png&auto=webp&s=db7deea04e41e31bc04dbf7b35a49b9330017849

The Layout tool runs but doesn't remove the overlaps. The status bar still shows (40/40) overlapping UVs afterward.

What I see in UV Editor:
. All 23 shells are visible
. They are spread outside the 0-1 area (from X=-8 to X=+35)
. Some shells appear red/purple in Shaded mode

Question:
How do I actually fix 40 overlapping UVs when Layout isn't working? Do I need to manually move each shell? Is there a specific setting I'm missing?
reddit.com
u/FinalFill847 — 2 days ago