62 558
Assignments Done
98,8%
Successfully Done
In June 2018

Answer to Question #49787 in C# for Rudjame G Alvizo

Question #49787
Computing Grades using A+,A-,B+,B-,C+,C-,D,F and putting label from 100-0 by 12.5 its ratio per Letter Grade!
a simple program please put a copy of the the program that would run! Thank you and Godbless
Expert's answer
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
 
namespaceConsoleApplication1
{
    class Grade
    {
        public string G(double mark)
        {
            stringresult=" ";
            if((mark >= 0) && (mark <= 12.5))
            {
                result ="F" ;
            }
            if((mark >12.5 ) && (mark <=25 ))
            {
                result ="D";
            }
            if((mark >25 ) && (mark <=37.5 ))
            {
                result ="C-";
            }
            if((mark >37.5 ) && (mark <=50 ))
            {
                result = "C+";
            }
            if((mark >50 ) && (mark <= 62.5))
            {
                result = "B-";
            }
            if((mark >62.5 ) && (mark <=75 ))
            {
                result = "B+";
            }
            if((mark >75 ) && (mark <=87.5 ))
            {
                result = "A-";
            }
            if((mark >87.5 ) && (mark <=100 ))
            {
                result = "A+";
            }
            returnresult ;
        }
    }
    class Program
    {
        static void Main(string[]args)
        {
            Gradeob = new Grade();
            doublemark;           
            Console.Write("Enter your mark: " );
            mark = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("Your Grade is : " +ob.G(mark));
 
            Console.ReadLine();
        }
   }
}
 
 

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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions