Main Program: Start Declare variables idno, location, dept, budget, spent, msg Input idno, location, dept, budget, spent budgetMsg () Output idno, location, dept, budget, spent, msg Stop budgetMsg () If dept < 20 If budget > 350000 msg cut 7% Else Else If spent > 250000 msg cut 6% Else End if msg= cut 5% End if End if msg cut 4% Problem #27: 1111 BO 21 400000 300000 Problem #27: 2222 PR 19 100000 110000 Problem #29: 3333 FR 10 300000 275000 Problem #30 4444 NB 15 200000 150000 What are the results?

icon
Related questions
Question
Main Program:
Start
Declare variables idno, location, dept, budget, spent, msg.
Input idno, location, dept, budget, spent
budgetMsg ()
Output idno, location, dept, budget, spent, msg
Stop
budgetMsg ()
If dept < 20
If budget > 350000
msg cut 7%
Else
Else
If spent > 250000
msg cut 6%
Else
msg cut 5%
End if
End if
End if
msg cut 4%
Problem #27:
1111 BO 21 400000 300000
Problem #27:
2222 PR 19 100000 110000
Problem #29:
3333 FR 10 300000 275000
Problem #30
4444 NB 15 200000 150000
What are the results?
Transcribed Image Text:Main Program: Start Declare variables idno, location, dept, budget, spent, msg. Input idno, location, dept, budget, spent budgetMsg () Output idno, location, dept, budget, spent, msg Stop budgetMsg () If dept < 20 If budget > 350000 msg cut 7% Else Else If spent > 250000 msg cut 6% Else msg cut 5% End if End if End if msg cut 4% Problem #27: 1111 BO 21 400000 300000 Problem #27: 2222 PR 19 100000 110000 Problem #29: 3333 FR 10 300000 275000 Problem #30 4444 NB 15 200000 150000 What are the results?
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer