10
Creating Table Creating Table using LOOP using LOOP By Adnan and M.Qazi Programmers

Creating Table using LOOP By Adnan and M.Qazi Programmers

Embed Size (px)

Citation preview

Page 1: Creating Table using LOOP By Adnan and M.Qazi Programmers

Creating Table using Creating Table using

LOOP LOOP

By Adnan and M.Qazi

Programmers

Page 2: Creating Table using LOOP By Adnan and M.Qazi Programmers

Agenda

Introduction Designing Algorithm Flow Chart Coding Testing and Debussing Demonstration

Page 3: Creating Table using LOOP By Adnan and M.Qazi Programmers

Introduction

Language Loops syntax Different types of Loops Internet Wikis Blogs Self Assessment

Page 4: Creating Table using LOOP By Adnan and M.Qazi Programmers

Designing Algorithm

Pseudo code No of Inputs No of outputs Table through all types of loops Formula for creating table

Page 5: Creating Table using LOOP By Adnan and M.Qazi Programmers

Algorithm of table

Enter the number to print the table. Loop will be repeated 10 times. Formula used in loop P=N*K and the

values of P,N and K is printed. Step No.3 will be repeated 10 times. End of the loop.

Page 6: Creating Table using LOOP By Adnan and M.Qazi Programmers

Flowchart

The pictorial representation of an algorithm is called flowchart.

Flowchart symbols. Start /End Flow lines Input/output Processing Decision symbol Connector symbol

Page 7: Creating Table using LOOP By Adnan and M.Qazi Programmers

Flowchart of table

start

Enter the number N

K= 1 to 10

P=N*K

Print N,K,P

Stop

Page 8: Creating Table using LOOP By Adnan and M.Qazi Programmers

CODING

10 INPUT “ENTER TH NUMBER=“,N20 FOR K=1 TO 1030 P=N*K40 PRINT N “*” ,K,”=“,P50 NEXT K60 END

Page 9: Creating Table using LOOP By Adnan and M.Qazi Programmers

Testing and Debugging

Complete unit testing of a program.

Page 10: Creating Table using LOOP By Adnan and M.Qazi Programmers

Demonstration

Output of program. Participants

Teachers Students Parents

Feedback Blogs Wikis