Question: What is the effect of the nested switch? if ( creditScore > = 7 0 0 ) { if ( annualIncome > = 2 5

What is the effect of the nested switch?
if(creditScore >=700)
{
if(annualIncome >=25000)
{
if(yearsOnJob >=2)
{
switch(creditScore/100)
{
case 9: System.out.printf("%nCongratulations, you\'ve just been granted a "
+"$%,.2f line of credit!%n",(annualIncome *.20));
break;
case 8: System.out.printf("%nCongratulations, you\'ve just been granted a "
+"$%,.2f line of credit!%n",(annualIncome *.15));
break;
case 7: System.out.printf("%nCongratulations, you\'ve just been granted a "
+"$%,.2f line of credit!%n",(annualIncome *.10));
}//END switch on creditScore/100
}//END if yearsOnJob >=2
else
{
System.out.printf("%nA minimum of 2 years with your current employer "
+"is required.%n");
}//END yearsOnJob <2
}//END if annualIncome >=25000
else
{
System.out.printf("%nYour annual income needs to be no less than $25,000.%n");
}//END annualIncome <25000
}//END if creditScore >=700
else
{
System.out.printf("%nYour credit score needs to be above 700.%n");
}//END else creditScore <700
Group of answer choices
There is no effect.
Rewards credit worthy customers with a very good to excellent credit score a higher credit line.
Enables the testing of 3 conditions that always have to be true.
Allows for the printing of all 3 denial messages all at once.
Allows for the calculation of the credit line based on a single percentage regardless of credit score.

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!