107 618
Assignments Done
100%
Successfully Done
In November 2023

# Answer to Question #48996 in Engineering for salah abu zaid

Question #48996
Write a program that can enter marks for 1 student and calculate his total and
The inputs:
ID (As Integer), First (As Double), Second (As Double), Final (As Double), Total (As
The Grades are: A for 90’s, B for 80’s, C for 70’s, D for 60’s and F for less than 60.
The output:
St_Nm ID First Second Final Average Grade
1
2014-11-18T00:45:59-0500
﻿

using System;
usingSystem.Collections.Generic;
using System.Linq;
using System.Text;

namespaceConsoleApplication45
{
class Program
{
static void Main()
{
int ID;
double First,Second,Final,Total;
int St_Nm;
Console.Write("enter number ofstudent ");

Console.Write("enterstudent ID ");
Console.Write("enter firstmark ");
Console.Write("entersecond mark ");
Console.Write("enter finalmark ");
Total = First + Second + Final;
if (Total >= 90) Grad = 'A';
if ((Total >= 80) &&(Total < 90)) Grad = 'B';
if ((Total >= 70) &&(Total < 80)) Grad = 'C';
if ((Total >= 60) &&(Total < 70)) Grad = 'D';

Console.WriteLine("St_NmID First Second Final Average Grade");
Console.WriteLine(St_Nm +"\t" + ID + "\t" + First + "\t" + Second +
"\t" + Final + "\t" + Total + "\t" + Grad);

}
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!