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 QualifyScoreScoreType 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.FICOVantageScore Rating
tableExceptionalExcellent code: using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
TestClass
public partial class CreditScore
enum ScoreType
FICO,
Vantage
string QualifyScoreScoreType type, int actualScore
Your code starts here
ifScoreTypeFICO.Equalstype
ifactualScore && actualScore
return "Exceptional";
else ifactualScore
return "Very Good";
else ifactualScore
return "Good";
else ifactualScore
return "Fair";
else ifactualScore
return "Poor";
else
ifactualScore && actualScore
return "Excellent";
else ifactualScore
return "Good";
else ifactualScore
return "Fair";
else ifactualScore
return "Poor";
else ifactualScore
return "Very Poor";
return ;
Your code ends here
FeedbackASSISTANT HINT # for
:
Make sure to check the lower and upper bounds for each score range. Doublecheck the conditionals for the FICO and Vantage score types.
Asistant
ASSISTANT HINT # for
:
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 # for
:
Make sure to handle all possible input values for the actualScore parameter. Consider using ifelse statements to check the score ranges and return the corresponding rating.
Asistant
ASSISTANT HINT # for
:
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 # for
:
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
