At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Our platform connects you with professionals ready to provide precise answers to all your questions in various areas of expertise. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

Can someone help plzz!!!!

Can Someone Help Plzz class=
Can Someone Help Plzz class=
Can Someone Help Plzz class=
Can Someone Help Plzz class=

Sagot :

here is your answer in c#:Answer:

using System;

using System.Collections.Generic;

using System.IO;

using System.Linq;

using System.Runtime.CompilerServices;

using System.Security.Cryptography.X509Certificates;

namespace CSACTUALDEMO

{

   class Program

   {

       public static int a;

       public static int b;

       public static void Main()

       {

           int cases = int.Parse(Console.ReadLine());

           int gradeseries = 1;

           List<int> myList = new List<int>();

           for (int forloop = 0; forloop <= cases; forloop++)

           {

               a = int.Parse(Console.ReadLine());

               Console.WriteLine($"Enter grade # { gradeseries++}: { a } ");

               myList.Add(a);

           }

           Console.WriteLine($"The maximum value is:  {myList.Max()}");

           Console.WriteLine($"The minimum value is: {myList.Max()}");

           Console.WriteLine($"The mean is: {myList.Sum() / cases}");

           Console.WriteLine($"The grades in forward order are:");

           foreach (int a in myList)

           {

               Console.WriteLine();

           }

           myList.Reverse();

           Console.WriteLine($"grades in reverse order: {myList}");

       }

   }

} Explanation: