Posts

Showing posts from November, 2017

PlusMinusDivideMultiply

Image
Flowchart

Program Specifications

Image
Create a program that would add two numbers. Program specifications is a definition of what computer program is expected to do. Flowchart  Keywords Input - Enter, Input Process - View, Calculate, Formula Output - Show, Display INPUT          PROCESS                                OUTPUT num1            campur= num1 + num2              show campur num2 Outlining Variables

Pass Statement

Image
Code and Output number = 0 for number in range (5): number = number + 1 if number == 5: pass print ("number is" + str (number)) print ("out of loop")

Features

Image
Control structures Procedure Local Variable It is created inside a function and cannot be accessed by statements that are outside of function. Functions Global Variable