Main Program: Start Declare variables idno, location, dept, budget, spent, msg Input idno, location, dept, budget, spent If dept < 20 msg cut 5% Else If budget > 350000 msg = cut 7% Else msg cut 6% End if End if Output idno, location, dept, budget, spent, msg Stop

icon
Related questions
Question
Main Program:
Start
Declare variables idno, location, dept, budget, spent, msg
Input idno, location, dept, budget, spent
If dept < 20
msg cut 5%
Else
If budget > 350000
msg cut 7%
Else
cut 6%
msg
End if
End if
Output idno, location, dept, budget, spent, msg
Stop
Problem #15:
1111 BO 20 400000 300000
Problem #16:
2222 PR 14 100000 110000
Problem #17:
3333 FR 25 200000 100000
What are the results?
Transcribed Image Text:Main Program: Start Declare variables idno, location, dept, budget, spent, msg Input idno, location, dept, budget, spent If dept < 20 msg cut 5% Else If budget > 350000 msg cut 7% Else cut 6% msg End if End if Output idno, location, dept, budget, spent, msg Stop Problem #15: 1111 BO 20 400000 300000 Problem #16: 2222 PR 14 100000 110000 Problem #17: 3333 FR 25 200000 100000 What are the results?
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions