The passing grade for IT department courses is 60. Design and create a GUI C# ap
ID: 3881308 • Letter: T
Question
The passing grade for IT department courses is 60. Design and create a GUI C# application to display the average grade and if the student pass or fail an IT course. The course average is found from the grades in Midterm, Final and Project grades weighted evenly. You are required to write a GUI C# program that allows the user to input the 3 grades. The program calculates and displays the average grade and then displays "Student Pass the course " or " Student Fail the course" as appropriate.
Complete the Exam 1 Practical application attached and Submit the Same word document, paste your GUI design ( screenshot) and the C# source code to the same document and submit by the Due Date.
Explanation / Answer
//the following is the c# code for calculating grade and displaying whether student is Pass/Fail..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class exercise22
{
static void Main(string[] args)
{
string notes;
int grd,finl,prjct;
Console.Write("Input the MIdterm grade :");
grd = Convert.ToChar(Console.ReadLine().ToUpper());
Console.Write("Input the final grade :");
finl = Convert.ToChar(Console.ReadLine().ToUpper());
Console.Write("Input the project grade :");
prjct = Convert.ToChar(Console.ReadLine().ToUpper());
var avg=(grd+finl+prjct)/3;
Console.WriteLine("the average grade is {0}", avg);
if(avg> 60)
System.Console.WriteLine(""Student Pass the course.");
else
System.Console.WriteLine("Student Fail the course");
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.