Worksheet Programming
Name: ______________________________________________ Grade _____________
Task 1. Convert block-based code to flowchart Flowchart
and complete test plan
Test number Data entered Expected Actual outcome Pass/Fail
outcome
num1=15 Result is 3
num2=5
answer = “D”
num1=12 Result is 36
num2=3
answer = “M”
num1=11 Result is 1
num2=11
answer = “D”
num1=12 Result is 120
num2=10
answer = “M”
Python code
Task 2. Create a flowchart and write python code that satisfies the following criteria:
• The user should enter a number.
• The flowchart checks to see whether the number is negative or positive
• If it is, then it should output message that it is positive number
• If it is not, it should output message that it is negative number
After finishing flowchart, you should create a test plan in order to check your code.
Flowchart Python code
Test plan