end 3) Trace the following flowchart for when input values are -10, -1, 3, 2, 11, 13, 1, 0 and complete the trace table. Note that the system may end before all of the inputs have been received; if this occurs you ignore the final inputs. Also, write pre-post-conditions for this flowchart. start p+0 n 0 num num>0 IT p<-p+1 T num 0 and p≤2*n F end num<0 T nn+1 output Trace the following flowchart for when input values are 12, 2, -3, 6, -11, -3, 1, -1 and complete the trace table. Also, write pre-post-conditions for this flowchart. start cnt10 cnt2 0 1←1 i≤4 i+i+1 num i1 F 1≤4 14-1+1 F num<0 T cnt1=cnt2 num "no" cnt1cnt1 +1 num>0 "yes" end cnt2 + cnt2 + 1
end 3) Trace the following flowchart for when input values are -10, -1, 3, 2, 11, 13, 1, 0 and complete the trace table. Note that the system may end before all of the inputs have been received; if this occurs you ignore the final inputs. Also, write pre-post-conditions for this flowchart. start p+0 n 0 num num>0 IT p<-p+1 T num 0 and p≤2*n F end num<0 T nn+1 output Trace the following flowchart for when input values are 12, 2, -3, 6, -11, -3, 1, -1 and complete the trace table. Also, write pre-post-conditions for this flowchart. start cnt10 cnt2 0 1←1 i≤4 i+i+1 num i1 F 1≤4 14-1+1 F num<0 T cnt1=cnt2 num "no" cnt1cnt1 +1 num>0 "yes" end cnt2 + cnt2 + 1
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 1.7CP
Related questions
Question
Please assist me with these questions. I need help with creating JavaScript code for the flowcharts provided below.
Note: You will have to implement several functions that require multiple inputs (e.g., 12, 2, -3, 6, -11, -3, 1, -1). In these cases, accept as input a comma-delimited string (i.e., "12,2,-3,6,-11,-3,1,-1"). Then, break the comma-delimited string into a series of integers for processing with your
Thank you
![end
3) Trace the following flowchart for when input values are -10, -1, 3, 2, 11, 13, 1, 0 and
complete the trace table. Note that the system may end before all of the inputs have
been received; if this occurs you ignore the final inputs. Also, write pre-post-conditions
for this flowchart.
start
p+0
n 0
num
num>0
IT
p<-p+1
T
num 0 and
p≤2*n
F
end
num<0
T
nn+1
output](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5354a32c-ee07-469b-96d5-42a00c955615%2F0800459e-94e1-47e1-b39f-876333f82ac7%2Fmfp0ius_processed.jpeg&w=3840&q=75)
Transcribed Image Text:end
3) Trace the following flowchart for when input values are -10, -1, 3, 2, 11, 13, 1, 0 and
complete the trace table. Note that the system may end before all of the inputs have
been received; if this occurs you ignore the final inputs. Also, write pre-post-conditions
for this flowchart.
start
p+0
n 0
num
num>0
IT
p<-p+1
T
num 0 and
p≤2*n
F
end
num<0
T
nn+1
output
![Trace the following flowchart for when input values are 12, 2, -3, 6, -11, -3, 1, -1 and
complete the trace table. Also, write pre-post-conditions for this flowchart.
start
cnt10
cnt2 0
1←1
i≤4
i+i+1
num
i1
F
1≤4
14-1+1
F
num<0
T
cnt1=cnt2
num
"no"
cnt1cnt1 +1
num>0
"yes"
end
cnt2 + cnt2 + 1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5354a32c-ee07-469b-96d5-42a00c955615%2F0800459e-94e1-47e1-b39f-876333f82ac7%2Fwrj2bvy_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Trace the following flowchart for when input values are 12, 2, -3, 6, -11, -3, 1, -1 and
complete the trace table. Also, write pre-post-conditions for this flowchart.
start
cnt10
cnt2 0
1←1
i≤4
i+i+1
num
i1
F
1≤4
14-1+1
F
num<0
T
cnt1=cnt2
num
"no"
cnt1cnt1 +1
num>0
"yes"
end
cnt2 + cnt2 + 1
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage