Question: c# using static System.Console; class DebugEight 2 { static void Main ( ) { int numericScore = 8 2 ; string letterScore = B; Write

c# using static System.Console;
class DebugEight2
{
static void Main()
{
int numericScore =82;
string letterScore = B;
Write("Score was {0}.", numericScore);
GiveBonus(ref numericScore);
WriteLine("Now it is {0}.", numericScore);
Write("Grade was ", letterScore);
GiveBonus(ref letterScore);
WriteLine("Now it is ", letterScore);
}
public static void GiveBonus(int ref testScore)
{
const int BONUS =5;
int testScore = BONUS;
}
public static void GiveBonus(string ref letterScore)
{
const string BONUS ="+";
string letterScore = BONUS;
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!