0

I have problem for creating an array because this is my first time to encounter this in our lesson .I hope someone could help me

Create a program that will compute for the final grade and corresponding ranks of students.Let the user enter their name,midterm grade and tentative final grade of a number of students.Based on values,compute and display the final grade and the corresponding rank. . . thanks for helping.

5th Mar 2018, 10:24 AM
keithz talamillo
keithz talamillo - avatar
2 Réponses
0
where is the code you came up with so far?
5th Mar 2018, 10:57 AM
Farshaad Heydari
Farshaad Heydari - avatar
0
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication74 { class Program { public static void Main(string[] args) { double FG; String name; Console.Write("Enter a number of Students: "); String s = Console.ReadLine(); int x = Int32.Parse(s); for (int j = 0; j < x; j++) { Console.Write("\n\nEnter Name: "); name = Convert.ToString(Console.ReadLine()); Console.Write("Enter Midterm Grade: "); double Mg = Convert.ToDouble(Console.ReadLine()); Console.Write("Enter Tentative Final Grade:"); double TFG = Convert.ToDouble(Console.ReadLine()); FG = (Mg + TFG) / 2; Console.Write("\nName: {0}", name); Console.Write("\nYour Final Grade is: {0} ", FG); Console.ReadKey(); } } } }
5th Mar 2018, 11:46 PM
keithz talamillo
keithz talamillo - avatar