[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-701652-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-701652-en":130,"doc-similar-701652":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","algorithms-development-pseudo-code-and-flowchart-lecture-2","Algorithms Development - Pseudo-code and Flowchart - Lecture 2","","Algorithms Development - Pseudo-code and Flowchart - Lecture 2 explains what an algorithm is and how it transforms inputs into desired outputs. It provides step-by-step examples such as adding two numbers and printing the result, with corresponding pseudo-code and flowchart structures using standard flowchart symbols. The lecture also distinguishes pseudo-code from flowcharts, then introduces programming scenarios including sequencing, conditions (if/else), and iteration (looping), supporting understanding of algorithm planning before coding.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/algorithms-development-pseudo-code-and-flowchart-lecture-2/701652/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/algorithms-development-pseudo-code-and-flowchart-lecture-2/701652.png","ImageObject",300,407,{"name":42,"@type":43},"Cart","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-19","2026-11-13",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is an algorithm in computer programming?","Question",{"text":62,"@type":63},"An algorithm is a set of well-defined instructions to solve a particular problem. It takes inputs and produces the desired output.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How do you represent an algorithm using pseudo-code and a flowchart?",{"text":67,"@type":63},"Pseudo-code lists steps in a structured way, while a flowchart graphically represents the workflow using standard shapes and arrows to show sequence and relationships.",{"name":69,"@type":60,"acceptedAnswer":70},"What are the main programming scenarios mentioned in the lecture?",{"text":71,"@type":63},"The lecture lists three main scenarios: sequencing (right order), conditions (decisions based on rules such as if/else), and iteration (looping by repeating operations).","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},701652,1794535511,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},18829141979164,"https://eur-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Al-Mustaqbal University College of Engineering & Technology  \nBiomedical Engineering Department  \nComputer  \nLecture 2  \nAlgorithms Development – Pseudo-code and Flowchart  \nPhD. BEng. Ahmed Hasan Janabi PhD in Cybersecurity [Email:](Email: Ahmed.Janabi@uomus.edu.iq)[ ](Email: Ahmed.Janabi@uomus.edu.iq)[Ahmed.Janabi@uomus.edu.iq](Email: Ahmed.Janabi@uomus.edu.iq)  \nWhat is an algorithm?  \n❖ In computer programming, an algorithm is a set of well-defined instructions to solve a particular problem.  \n❖ It takes a set of input and produces a desired output.  \nStep 1: Start  \nStep 2: Define the variables  \nStep 3: Read values of variables  \nStep 4: Process  \n▪ math operations  \n▪ logic operations  \n▪ comparisons Step 5: Display result Step 6: End  \nAlgorithm to add two numbers  \n❖We need to first write the steps (sequence of actins) that lead to performing the task.  \n❖ For example, an algorithm to add two numbers:  \n➢Take two number inputs  \n➢Add numbers using the + operator  \n➢Display the result  \n\n| Step \\# | Description |\n| --- | --- |\n| Step1 | Start |\n| Step2 | Declare or define variables num1, num2, sum; |\n| Step3 | Read values num1 and num2 |\n| Step4 | Add num1 and num2 and assign the results to sum sum  num1 + num2; |\n| Step5 | Print sum |\n| Step6 | End |\n\nFlowchart Symbols  \n➢ A Flowchart is a graphical representation that shows the behavior (workflow) of an algorithm.  \nFlowcharts use standard shapes including the following:  \nAdding two numbers  \n✓ Write the pseudo-code for algorithm to sum two numbers. Then draw the equivalent flowchart.  \n➢ Flowcharts use standard shapes including the following:  \nAns:  \n Pseudo-code Algorithm   Flowchart   \nStep 1: START  \nStep 2: DECLARE variables num1, num2, sum;  \nStep 3: READ  num1, num2;  \nStep 4: CALCULATE sum  \nsum = num1 + num2; Step 5: PRINT sum  \nStep 6: END  \nNote:  \n➢ The pseudo-code and flowchart of an algorithm is not written for a particular programming language.  \n➢ They can be used to plan a solution before coding it.  \nPrint if the condition met  \n❖ Draw the Flowchart to print the square of a number if the number is less than 5.  \nNote:  \n➢ The lines and arrows in it show the sequence of steps and the relationship among them.  \nDifference between pseudo-code and flowchart  \nMain differences between Pseudo-code and Flowchart  \n❖ The pseudo-code is a high-level description of an algorithm while the flowchart is a graphical representation of an algorithm.  \n❖ An algorithm is a set of instructions for solving a problem or accomplishing a task.  \n❖ Every computerized device uses algorithms, which cut the time required to do things manually.  \n❖ There are three main ways or scenarios used in the programming. These are:  \n1) Sequencing – putting things in the right order  \n2) Conditions – performing different things depending on some rules  \n3) Iteration (Looping)– repeating operations  \nSequencing  \n❖ Calculate the average of three input numbers.  \nPseudo-code Algorithm  \nStep 1: Start  \nStep 2: Declare variables Ave;  \nStep 3: Read variables num1, num2, num3;  \nStep 4: Calculate Ave  \nAve = (num1 + num2 + num3)/3; Step 5: Print Ave  \nStep 6: End  \nConditions  \n❖ Conditions are very important to understand the flow-control of the code being executed.  \n❖ Conditions are used to make a decision (choose between two or more alternatives based on the condition)  \n➢ For example, conditions become very essential to use when facing different directions, so based on the condition should choose the thing to be executed.  \nUse the if statement  \nIf (condition) then run this statement;  \nElse  \nrun the other statement;  \nConditions","cbCaidw1Oakw8Sxu","https://ap.wps.com/l/cbCaidw1Oakw8Sxu","pdf",1131315,23,"English","# What is an algorithm?\n## Steps in an algorithm\n# Algorithm to add two numbers\n## Pseudo-code vs flowchart\n# Flowchart symbols and equivalent representations\n# Difference between pseudo-code and flowchart\n# Programming scenarios\n## Sequencing\n## Conditions (if statement)\n## Iteration (looping)","[{\"question\":\"What is an algorithm in computer programming?\",\"answer\":\"An algorithm is a set of well-defined instructions to solve a particular problem. It takes inputs and produces the desired output.\"},{\"question\":\"How do you represent an algorithm using pseudo-code and a flowchart?\",\"answer\":\"Pseudo-code lists steps in a structured way, while a flowchart graphically represents the workflow using standard shapes and arrows to show sequence and relationships.\"},{\"question\":\"What are the main programming scenarios mentioned in the lecture?\",\"answer\":\"The lecture lists three main scenarios: sequencing (right order), conditions (decisions based on rules such as if/else), and iteration (looping by repeating operations).\"}]","Algorithms Development - Pseudo-code and Flowchart - Lecture 2 | PDF",58,[146,150,153,157],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/71a34e01f95376f97a0ce701f29c8c02.webp",983,552,{"page_no":26,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/cf64313f34fe823153da12b884548f92.webp",982,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/789b190d265c1d50f41944f5b04dfff5.webp",981,551,{"page_no":33,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/0f372d4db50bf9955c0484a0c217a37f.webp",980,{"list":161,"token":11},[162,168,174,180,186,192,198,204,210,216],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":33,"category_name":29,"create_tm":167},669238,"Algorithms and Flowcharts - Algorithms Definition and Characteristics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988184886/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=DAakmeuvjijyadBdjEK44r%2F8Kyk%3D","algorithms-and-flowcharts-algorithms-definition-and-characteristics",1793536942,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":110,"category_name":29,"create_tm":173},668970,"Understanding and Algorithms - Learning Objective","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987435583/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=ZhdBOQ7SVEAxR22oDB%2BRfS8H140%3D","understanding-and-algorithms-learning-objective",1793521908,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":30,"category_name":29,"create_tm":179},701648,"Algorithm - Flow Charts, Pseudo Code - Grade Reading Examples","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012473805/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Pt0q553tCZJBJF9NDcB8AM8%2Fqq8%3D","algorithm-flow-charts-pseudo-code-grade-reading-examples",1794535502,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":96,"category_name":29,"create_tm":185},680207,"Flowcharts - Programming Fundamentals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997987812/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=cJwNtF0XnVid1Tqqs5sJouOb%2B1k%3D","flowcharts-programming-fundamentals",1793914768,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":105,"category_name":29,"create_tm":191},668975,"ALGORITHM AND FLOWCHART - Chapter 1 - Definition, Properties and Flowchart/Pseudocode","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987435630/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=xDhcrNUTJbERCw6Iay6L5id18h8%3D","algorithm-and-flowchart-chapter-1-definition-properties-and-flowchartpseudocode",1793521918,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":33,"category_name":29,"create_tm":197},697705,"Flowchart Definition and Its Symbols - Study Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009856835/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=GQAwmj%2B2dtnh2veIwOs6KUvKwEc%3D","flowchart-definition-and-its-symbols-study-notes",1794442296,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":101,"category_name":29,"create_tm":203},673424,"UNIT: 1 - Flowchart and Algorithm - Introduction and C Program Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990584774/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=URl7Zak7142ZM22v7Z9DBG2RPrw%3D","unit-1-flowchart-and-algorithm-introduction-and-c-program-basics",1793637912,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":30,"category_name":29,"create_tm":209},680208,"Flowchart Symbols - Notes - Homework","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997721846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=pfKnunmfO6BR9We6ptS63Dzg%2FoI%3D","flowchart-symbols-notes-homework",1793914773,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":101,"category_name":29,"create_tm":215},669061,"8785_WEEK 3 - LESS0N NOTE - FLOWCHART","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987820673/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=KmNpBpLr8O4XGGSXiK658Nc7ntE%3D","8785_week-3-les0n-note-flowchart",1793525132,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":33,"category_name":29,"create_tm":221},680209,"Flowchart","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997721854/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=8fOSRWwEpFQe7DllnXNo9E6Um5U%3D","flowchart-680209",1793914775]