Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

maru batting center

Answered: 1 week ago

Question

=+Does the design support the intended message?

Answered: 1 week ago

Question

=+Can the readability be improved?

Answered: 1 week ago