subject

Given the following pseudocode that stops when 0 is input, what should XXX and YYY be so that the final output shows how many positive values are input? n = 0 val = Get next input While val is not 0 If XXX YYY val = Get next input put n to output a. XXX: val < 0, YYY: val += 1 b. XXX: val > 0, YYY: val += 1

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
What are the three uses of a screw?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
You know the right answer?
Given the following pseudocode that stops when 0 is input, what should XXX and YYY be so that the fi...
Questions
question
Mathematics, 30.05.2021 01:40
question
Mathematics, 30.05.2021 01:40
question
Social Studies, 30.05.2021 01:40
question
Mathematics, 30.05.2021 01:40
Questions on the website: 13722362