0% found this document useful (0 votes)
2 views2 pages

Programming Worksheet

The document outlines a worksheet for programming tasks, including converting block-based code to a flowchart and completing a test plan. It specifies test cases with data inputs and expected outcomes for a division and multiplication operation. Additionally, it requires creating a flowchart and Python code to determine if a user-entered number is positive or negative, along with a test plan for verification.

Uploaded by

a.sakbergenova
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Programming Worksheet

The document outlines a worksheet for programming tasks, including converting block-based code to a flowchart and completing a test plan. It specifies test cases with data inputs and expected outcomes for a division and multiplication operation. Additionally, it requires creating a flowchart and Python code to determine if a user-entered number is positive or negative, along with a test plan for verification.

Uploaded by

a.sakbergenova
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like