Open kyu718 opened 1 month ago
using System;
public class Grades { public static void Main(string[] args) { double value1, value2, value3, value4, average;
Console.WriteLine(" [Grade Average] "); Console.WriteLine(" "); Console.Write(" Math: "); value1 = Convert.ToDouble(Console.ReadLine()); Console.Write(" Araling Panlipunan: "); value2 = Convert.ToDouble(Console.ReadLine()); Console.Write(" Computer: "); value3 = Convert.ToDouble(Console.ReadLine()); Console.Write(" English: "); value4 = Convert.ToDouble(Console.ReadLine()); average = (value1+value2+value3+value4) / 4; Console.WriteLine(" "); Console.WriteLine(" AVERAGE: " + average); if (average > 100) Console.Write(" INVALID "); else if (average >= 98) Console.Write(" With Highest Honor "); else if (average >= 95) Console.Write(" With High Honor "); else if (average >= 90) Console.Write(" With Honor "); else if (average >= 75) Console.Write(" Passed "); else if (average < 75) Console.Write(" Failed "); }
}
using System;
public class Grades { public static void Main(string[] args) { double value1, value2, value3, value4, average;
}