Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
9th Edition
ISBN: 9781337669405
Author: FARRELL
Publisher: Cengage
Bartleby Related Questions Icon

Related questions

Question

Use the following pseudocode for questions 18-20:

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
msg = cut 6%

Endif

Endif

Question at position 18

18
Fill in the Blank
1 point
Question 18 is unpinned. Click to pin.
Question at position 18

What would the msg be set to if the following was input:

Input: 1111 BO 20 400000 300000

Output: cut

Question Blank 1 of 1

Question at position 19

19
Question at position 19

What would msg be if the input was the following:

Input: 2222 PR 14 100000 110000

Output: cut

Question 20

What would msg be if the input was the following:

Input: 3333 FR 25 200000 100000

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,