136k views
1 vote
Can someone help plzz!!!!

Can someone help plzz!!!!-example-1
Can someone help plzz!!!!-example-1
Can someone help plzz!!!!-example-2
Can someone help plzz!!!!-example-3
Can someone help plzz!!!!-example-4
User Xaviert
by
4.1k points

1 Answer

2 votes

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:

User Ricardo Gomes
by
3.4k points