Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which XXX and YYY will output the sum of the input integers ( stopping when - 1 is input ) ? Flowchart has 2 variables
Which XXX and YYY will output the sum of the input integers stopping when is input
Flowchart has variables integer val, integer sum and nodes. Node is the start node and points to node Node code: val Get next input Node points to node Node code: XXX Node points to node Node code: while notval Node points to nodes condition is true and condition is false Node code: YYY Node points to node Node code: val Get next input Node points to node Node code: Put sum to output Node points to node Node is the end node.
a
XXX: sum val YYY: sum val
b
XXX: sum val YYY: sum sum val
c
XXX: sum YYY: sum sum val
d
XXX: sum YYY: sum val
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started