Wislu16 / IT2105

0 stars 0 forks source link

IT2105_Seatwork1_ACOSTA #1

Open Wislu16 opened 1 month ago

Wislu16 commented 1 month ago

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

namespace ConsoleApplication3 { class Program { static void Main(string[] args) { Console.WriteLine("Grade Average Program");

        Console.Write("English : ");
        double eng = Convert.ToDouble(Console.ReadLine());
        Console.Write("Math : ");
        double math = Convert.ToDouble(Console.ReadLine());
        Console.Write("Science : ");
        double sci = Convert.ToDouble(Console.ReadLine());
        Console.Write("Mapeh : ");
        double mapeh = Convert.ToDouble(Console.ReadLine());

        double average = (eng+math+sci+mapeh ) /4;
        Console.WriteLine(average);
        if (average > 100) Console.Write("INVALID GRADE");
        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");
        Console.ReadKey();

    }
}

}

Wislu16 commented 1 month ago

HI

Wislu16 commented 1 month ago

image