Ask your own question, for FREE!
Discrete Math 18 Online
OpenStudy (anonymous):

The following function written in pseudocode accepts INCOME as a variable and outputs the TAX corresponding to that income. FUNCTION TAX (INCOME) 1. IF (INCOME > 60000) THEN a. TAXDUE ← 15000 2. ELSE a. IF (INCOME > 30000) THEN 1. TAXDUE ← 5000 b. ELSE 1. TAXDUE ← INCOME × 0.08 3. RETURN (TAXDUE) What would the pseudocode output with an input of: a) 23000? b) 64000? c) 47000?

OpenStudy (perl):

what part are you struggling with

jimthompson5910 (jim_thompson5910):

I'll do the first one to get you started input: 23,000 Income = 23,000 this is NOT greater than 60,000 so we skip to the first "else" this is also NOT greater than 30,000 so we jump to the second "else" it then tells you to multiply the income by 0.08: 0.08*23000 = 1,840 So TaxDue = 1,840 which is the amount returned

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!