Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Microsoft C# viual studios messages of more than 140 characters 3. Write a progr

ID: 3595023 • Letter: M

Question


Microsoft C# viual studios

messages of more than 140 characters 3. Write a program named Admission for a college's admissions office. The user enters a numeric high school grade point average (for example, 3.2) and an admis test score. Display the message Accept if the student meets either of the following requirements . A grade point average of 3.0 or higher, and an admission test score of at least 60 . A gra de point average of less than 3.0, and an admission test score of at least 80 meet either of the qualification criteria, display Reject. If the student does not

Explanation / Answer

Here's is the code for your requirement..

Code:

-----------

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

namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Enter a test score :: ");
int intTemp = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter grade points :: ");
String s = Console.ReadLine();
double fl = Convert.ToDouble(s);
  
if(fl>=3.0 && intTemp>=60){
Console.WriteLine("1Accept");
}
else if(fl<=3.0 && intTemp>=80){
Console.WriteLine("2Accept");
}
else{
Console.WriteLine("Reject");
}
  
}
}
}