Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python val = Get next input x x x While val is not - 1 YYY val = Get next input Put sum to output

Python
val = Get next input
xxx
While val is not -1
YYY
val = Get next input
Put sum to output
For the given pseudocode, which xxx and YYY will output the sum of the input integers (stopping when -1 is input)? Choices are in the form XXX / YYY.
sum = val / sum = val
sum =val / sum = sum +val
sum =0/ sum = sum + val
sum =0/ sum = val
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

Students also viewed these Databases questions

Question

Define and describe the sections in a job description.

Answered: 1 week ago