/*Direcrtions: Practice #7-2: Grade selector
1) Add 4 double constancts for the following values: 90, 80, 70, 60 representing grade ranges.
2) Create a double variable and assign it a grade.
3) Create a string variable for the grade.
4) Create an if, elseif, elseif, elseif, else structure to determeine the letter grade of the score.
a) Greater than or equal to 90, assign an "A" to the grade variable.
b) Greater than or equal to 80, assign a "B" to the grade variable.
c) Greater than or equal to 70, assign a "C" to the grade variable.
d) Greater than or equal to 60, assign a "D" to the grade variable.
e) Assign an "F" to the grade variable.
5) Output appripriate mesage to the screen using the variables. i.e. "A score of 90 is an A."
6) Submit your dotnetfiddle link in blackboard.
*/
using System;
public class Program
{
public static void Main()
const double dblA = 90;
const double dblB = 80;
const double dblC = 70;
const double dblD = 60;
double dblGrade = 86;
string strGrade;
if (dblGrade >= dblA)
{strGrade = "A";}
else if (dblGrade >= dblB)
{strGrade = "B";}
else if (dblGrade >= dblC)
{strGrade = "C";}
else if (dblGrade >= dblD)
{strGrade = "D";}
else
{strGrade = "F";}
Console.WriteLine("A score of " + dblGrade.ToString() + " is a " + strGrade);
}