Question: Translate the pseudocode in the text into Java and insert the proper code the mess on one of two possible message Suppose the bank is
the mess on one of two possible message Suppose the bank is losing customers to a competing bank that isn't as s whom it loans money to. In response, the bank decides to change ments. Novw Yet Another Loan Qualifier Program he pseudocode for the new loan qualifier program. The y the If-Then-Else statement in line le ments. Now, customers have to meet only one of the previous c pound expression that is tested b uses the OR operator. Program 4-10 1 II Declare variables 2 Declare Real salary, yearsonJob 4 II Get the annual salary. 5 Display Enter your annual salary." 6 Input salary 8 II Get the number of years on the current job. 9 Display "Enter the number of years on your" 10 Display "current job." 11 Input yearsonJob 12 13 // Determine whether the user qualifies. 14 If salary30000 OR yearsonJob2 Then 15 Display "You qualify for the loan." 16 Else 17 Display "You do not qualify for this loan." 18 End 11 Program Output (with Input Shown in Bold Enter your annual salary. 35000 [Enter Enter the number of years on your current job. 1 [Enter) You qualify for the loan. Program Output (with Input Shown In wn in Bold) Enter your annual salary. 25000 [Enter number of years on your current job. S [Enter) You quality for the loan
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
