kyu718 / IT2105

0 stars 0 forks source link

IT2105_Seatwork1_QUERIAZON #1

Open kyu718 opened 2 months ago

kyu718 commented 2 months 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 ");

}

}

kyu718 commented 2 months ago
Screen Shot 2024-09-20 at 1 10 29 PM