1 // Declare variables 2 Declare Real salary, yearsOnJob 3 4 // Get the annual salary. 5 Display "Enter your annual salary." 6 Input salary 7 8 // Get the number of years on the current job. 9 Display...


Based on the image attached, convert the pseudo code given to the C code.


*Help me solve this question with a detailed solution. Thank you in advance.


1 // Declare variables<br>2 Declare Real salary, yearsOnJob<br>3<br>4 // Get the annual salary.<br>5 Display = 30000 Then 15 If yearsonJob >= 2 Then 그6 Display "You qualify for the loan." 17 Else 그 8 19 20 21 Else 22 23 Display "You must have been on your current" Display "job for at least two years to qualify." End If Display "You must earn at least $30,000" Display "per year to qualify." 24 End If "/>
Extracted text: 1 // Declare variables 2 Declare Real salary, yearsOnJob 3 4 // Get the annual salary. 5 Display "Enter your annual salary." 6 Input salary 7 8 // 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 그 2 13 // Determine whether the user qualifies. 14 If salary >= 30000 Then 15 If yearsonJob >= 2 Then 그6 Display "You qualify for the loan." 17 Else 그 8 19 20 21 Else 22 23 Display "You must have been on your current" Display "job for at least two years to qualify." End If Display "You must earn at least $30,000" Display "per year to qualify." 24 End If

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here