This commit is contained in:
Userok 2024-10-28 15:03:35 +03:00
parent a5a4e43a49
commit 3eca2dd8f1

View File

@ -1,4 +1,7 @@
using System.Text.RegularExpressions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Zurnal.RemaDateBase.DateDao;
public class GroupAttendanceService
@ -10,10 +13,10 @@ public class GroupAttendanceService
Console.WriteLine($"Группа: {GroupName}");
Console.WriteLine($"Количество студентов: {Count()}");
var totalClasses = new AttendanceCounter(attendances).CountAttendances(UserGuid);
var totalClasses = new AttendanceCounter(attendances).CountAttendances(userGuid);
Console.WriteLine($"Количество проведенных занятий: {totalClasses}");
var overallAttendancePercentage = CalculateAttendancePercentage();
var overallAttendancePercentage = CalculateAttendancePercentage(attendances, userGuid);
Console.WriteLine($"Общий процент посещаемости: {overallAttendancePercentage:F2}%");
Console.WriteLine("Список студентов:");