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

This lab has two parts: 1. Create your own basic C# console application. 2. Crea

ID: 3785834 • Letter: T

Question

This lab has two parts:

1. Create your own basic C# console application. 2. Create a second C# console application within the same solution that is slightly more challenging. It is important that you save this part as a foundation for your first console application. For the first part: Open Mono IDE and begin a new solution for a blank console application Create a new blank C# console application. Create a simple application using appropriate variables to ask the user what their name and GPA is. Determine whether they will graduate with honors or if they are failing out and on probation using the following criteria: If their GPA is above 3.5, they will graduate with honors If their GPA is below 2.0, they are on probation and failing out. Using the information given to you, display a personalized message to the user regarding their academic status.

Explanation / Answer

using System;

namespace CsharpPrograms
{
class Program
{
static void Main(string[] args)
{

  
Console.Write(" Enter the name: ");
String name =Console.ReadLine();
Console.Write(" Enter the gpa: ");
double gpa = Double.Parse(Console.Readline());
       if(gpa > 3.5){
Console.Write(" "+name+" will graduate with honors");
   }
       else if(gpa >= 2.0 && gpa <= 3.5){
Console.Write(" "+name+" will graduate");
   }
       else{
Console.Write(" "+name+" is on probation and failing out");
       }
}
}
}

Output:

Enter the name: Suresh

Enter the gpa: 4.5

Suresh will graduate with honors

Enter the name: Sekhar

Enter the gpa: 2.5

Sekhar will graduate

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote