Question: i need help fixing my code. Assignment: Based on the table in this website that shows ratings for FICO and VatangeScore ranges. Implement the function:

i need help fixing my code. Assignment: Based on the table in this website that shows ratings for FICO and VatangeScore ranges. Implement the function:
string QualifyScore(ScoreType type, int actualScore)
For this part you are writing only the code for the function. The code should pass all the test cases. The test cases are already implemented and will be run by the system.FICO/VantageScore Rating
\table[[Exceptional/Excellent,800-850,781-850 code: using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
[TestClass]
public partial class CreditScore
{
enum ScoreType
{
FICO,
Vantage
}
string QualifyScore(ScoreType type, int actualScore)
{
//Your code starts here
if(ScoreType.FICO.Equals(type)){
if(actualScore>=800 && actualScore=850){
return "Exceptional";
}else if(actualScore>=740){
return "Very Good";
}else if(actualScore>=670){
return "Good";
}else if(actualScore>=580){
return "Fair";
}else if(actualScore>=300){
return "Poor";
}
}else{
if(actualScore>=781 && actualScore=850){
return "Excellent";
}else if(actualScore>=661){
return "Good";
}else if(actualScore>=601){
return "Fair";
}else if(actualScore>=500){
return "Poor";
}else if(actualScore>=300){
return "Very Poor";
}
}
return "";
//Your code ends here
}
}FeedbackASSISTANT HINT #1674 for 41
3/14/202410:16
Make sure to check the lower and upper bounds for each score range. Double-check the conditionals for the FICO and Vantage score types.
Asistant
ASSISTANT HINT #1675 for 42
3/14/202410:16
Make sure to consider all possible score ranges for both FICO and VantageScore. Also, pay attention to the order of the conditions and make sure to return the correct score range for each case.
Asistant
ASSISTANT HINT #1676 for 43
3/14/202410:16
Make sure to handle all possible input values for the actualScore parameter. Consider using if-else statements to check the score ranges and return the corresponding rating.
Asistant
ASSISTANT HINT #1677 for 19
3/14/202410:16
The error message indicates that the student's code is not handling a specific case correctly. They should review the test case that failed and make sure their code is properly handling the input values in that case.
Asistant
ASSISTANT HINT #1678 for 20
3/14/202410:16
Make sure to cover all possible values for actualScore, including the minimum and maximum values. Check the conditions for the ranges carefully, especially the upper bounds.
i need help fixing my code. Assignment: Based on

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!