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.
---------------------------------------------------------------------------------------------------------------------
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 parametersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started