Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Train_The_Trainers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int CountJury = int.Parse(Console.ReadLine());
- string NamePresentacion = Console.ReadLine();
- double MidllePresentacion = 0;
- double TotalScore = 0;
- double Total = 0;
- double MiddleTotal = 0;
- int CounterPresentacion = 0;
- while(NamePresentacion !="Finish")
- {
- for(int i=1;i<= CountJury; i++)
- {
- double Score = double.Parse(Console.ReadLine());
- TotalScore += Score;
- }
- MidllePresentacion = TotalScore / CountJury;
- Console.WriteLine($"{NamePresentacion} - {MidllePresentacion:f2}.");
- Total += MidllePresentacion;
- CounterPresentacion++;
- NamePresentacion = Console.ReadLine();
- TotalScore = 0;
- }
- MiddleTotal = Total / CounterPresentacion;
- Console.WriteLine($"Student's final assessment is {MiddleTotal:f2}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment