Question: Please Help in C#, Please make sure that the program passes the checks checks: Program outputs correct tuition Method CalculateTuition returns correct tuition -- Method

Please Help in C#, Please make sure that the program passes the checks

checks: Program outputs correct tuition

Method CalculateTuition returns correct tuition -- Method CalculateTuition returns correct tuition

--------------------------------------------------------------------------------------------------------------------

Question: DebugEight3.cs has syntax and/or logical errors. Determine the problem(s), and fix the program.

You have to do something like this.

Please Help in C#, Please make sure that the program passes the

---------------------------------------------------------------------------------------------------------------------

Code given:

// Program demonstrates method that can be called // with one, two, or three arguments // Tuition is $80 per credit // Default district code is I. // If student is in-district (code I), then there is no // out-of-district fee, which is $300 // Default scholarship status is false. // If student is on scholarship, tuition is free using static System.Console; class DebugEight3 { static void Main() { WriteLine("Tuition is {0}", CalculateTuition(15)); WriteLine("Tuition is {0}",CalculateTuition(15, 'O')); WriteLine("Tuition is {0}",CalculateTuition(15, 'O', true)); } double public static CalculateTuition(double credits, char code = 'I', bool scholarship) { double tuition const double RATE = 80.00; const double OUT_DISTRICT_FEE = 300.00; tuition = credits * RATE; if(code != 'I') tuition += OUTDISTRICTFEE; if(scholarship) tuition = 0; } }

public void Admission(int t, string 5) // Admission 1 Implementation //Method takes two parameters public void Admission(int t, string 5, int a) // Admission 2 Implementation //Method takes three parameters public void Admission() // Admission 3 Implementation //Method takes in no parameters

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 Databases Questions!