Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 Study the following flowchart: START t = 0, er- INPUT num No No IS num >= ? r-r+ 1 IS r > 2? Yes
3 Study the following flowchart: START t = 0, er- INPUT num No No IS num >= ? r-r+ 1 IS r > 2? Yes Yes t.t + num na n + 1 No IS E > -507 Yes t_n OUTPUT a &" and " &r STOP (a) Give the output from the system when the following data is entered: -3 4 126 20 -1 12 Show your working by completing the trace table, or showing your working through the algorithm. Output: Working: n [6] (b) A section of the flowchart has been written as the following pseudocode: input num if num > then -p+1 endir (1) State three different types of test data, [3] (1) For each type of test data identified in part (0), give an example of the test data that could be used to test the pseudocode algorithm. 2 2 [3] 3 Study the following flowchart: START t = 0, er- INPUT num No No IS num >= ? r-r+ 1 IS r > 2? Yes Yes t.t + num na n + 1 No IS E > -507 Yes t_n OUTPUT a &" and " &r STOP (a) Give the output from the system when the following data is entered: -3 4 126 20 -1 12 Show your working by completing the trace table, or showing your working through the algorithm. Output: Working: n [6] (b) A section of the flowchart has been written as the following pseudocode: input num if num > then -p+1 endir (1) State three different types of test data, [3] (1) For each type of test data identified in part (0), give an example of the test data that could be used to test the pseudocode algorithm. 2 2 [3]
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