[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-668967-105":59,"doc-detail-668967-en":134,"doc-similar-668967":165},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":127,"head_meta":129,"extra_data":131,"updated_unix":133},105,"en","pseudocode-and-flowcharts-an-educational-handout","Pseudocode and Flowcharts - An Educational Handout","","Educational handout explaining how pseudocode and flowcharts support software design before any coding begins. Uses a rectangle-area example to demonstrate defining input variables, calculating area, and applying an If-Else decision based on whether the area exceeds 100 square units. Then translates the same logic into a flowchart structure, describing key flowchart symbols (flow lines, terminals, input/output, processing, and decisions) and the required start/end and connections between steps.",{"@graph":69,"@context":126},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/pseudocode-and-flowcharts-an-educational-handout/668967/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/pseudocode-and-flowcharts-an-educational-handout/668967.png","ImageObject",300,407,{"name":92,"@type":93},"Valentina","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-01",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118,122],{"name":109,"@type":110,"acceptedAnswer":111},"Why should pseudocode be written before program code?","Question",{"text":112,"@type":113},"Pseudocode is an informal, step-by-step description that helps plan program logic and forces critical thinking about what must be accomplished, making it useful before code is written.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the example decide between “large” and “small” rectangles?",{"text":117,"@type":113},"After calculating area as length * width, the flow uses an If-Else conditional: if the area is greater than 100 square units it displays “That is a large rectangle,” otherwise it displays “That is a small rectangle.”",{"name":119,"@type":110,"acceptedAnswer":120},"What are the main symbols used in the flowchart, according to the handout?",{"text":121,"@type":113},"The handout describes symbols for flow lines, terminal (start/stop), input/output (parallelogram), processing (rectangle), and decision (diamond).",{"name":123,"@type":110,"acceptedAnswer":124},"What must a flowchart include at the beginning and end?",{"text":125,"@type":113},"Every flowchart must begin and end with the terminal shape to signify the start and end of the program’s operation.","https://schema.org",{"og:url":83,"og:type":128,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":130,"canonical":83},"index,follow",{"doc_id":132,"site_id":62},668967,1793521900,{"code":4,"msg":5,"data":135},{"doc_id":132,"user_id":136,"nickname":92,"user_avatar":137,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":138,"file_id":139,"file_url":140,"file_type":141,"file_size":142,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":24,"language":143,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":144,"faqs":145,"seo_title":146,"seo_description":67,"update_tm":133,"read_time":147,"preview_page_count":19,"preview_urls":148},13056703020460,"https://ap-avatar.wpscdn.com/avatar/be000253dac470eee5d?_k=1778207105932848923","Pseudocode and Flowcharts  \nAn often overlooked aspect of software design is the planning stage that must occur before any code is written. The pseudocode and flowchart are integral to this part of the process and for minimizing the number of missteps that can occur when determining how to approach an assignment. This handout will use an example prompt to explain and demonstrate the process of writing pseudocode and creating a flowchart.  \nYou can navigate to specific sections of this handout by clicking the links below.  \nPseudocode: pg. 1  \nFlowchart: pg. 2  \nMore Resources: pg. 6  \nPseudocode  \nPseudocode informally describes the step-by-step process that will be implemented to solve a problem or accomplish a task. It is useful for planning the logic behind each step of a program and forces the programmer to think critically about what must be accomplished. Therefore, it should always be written before the program code. The pseudocode’s informal description allows non-programmers to understand how the program should operate.  \nWhen beginning to develop pseudocode, it is important to think about the steps that are needed to solve the given problem. For example, a programmer may be tasked with solving the following prompt:  \nCreate a program that prompts a user to enter the length and width of a rectangle and then calculates the area of the rectangle based on the user’s input. If the area is greater than 100 square units, a message should be displayed that states,“That is a large rectangle.” Otherwise, the message should state,“That is a small rectangle.”  \nIn programming, the order in which problems are usually solved is to first define the variables, then perform necessary calculations, and finally, display outputs. Problems that are more complex will involve more steps but will likely follow the same general order. In the example prompt, the variables, which are the length and width, are defined by the user’s input.  \nTherefore, the first two steps of the pseudocode must involve prompting the user to enter the length and width of the rectangle. The beginning of the pseudocode will be the following:  \nDefine the length by asking for user input  \nDefine the width by asking for user input  \nAfter the length and width are defined, the area of the rectangle needs to be calculated. The formula for the calculation will be the length multiplied by the width (length * width); it is a good practice to include the formula for steps that involve calculations in the pseudocode. The next step of the pseudocode is shown below.  \nCalculate the area (length * width)  \nAfter the area of the rectangle has been calculated, the program can then determine the correct output. The output will depend upon the area, so a decision must be made. An “If-Else”statement will be used to determine what the output should be. An “If-Else” statement is a conditional statement that will provide different outcomes based on whether the given condition is true or false. For example, if the statement “The area is greater than 100 square units” is true, the outcome of the condition will be different than if the same condition is false. In the context of the example prompt, if the statement is true, then a message should be displayed that states,“That is a large rectangle.” If the statement is false, the message should instead state,“That is a small rectangle.” The final steps of the pseudocode demonstrate the IfElse statement:  \nIf the area is greater than 100 square units  \nDisplay “That is a large rectangle.”  \nElse  \nDisplay “That is a small rectangle.”  \nFlowchart  \nThe flowchart is used to represent program flow and, much like pseudocode, should be created before any code is written. It utilizes shapes to depict the different processes that occur throughout a program.  \nThe table shown below features the shapes that are used in a flowchart and the actions that they represent.  \nSymbols Used In Flowchart  \n\n| Symbol | Purpose | Description |\n| --- | --- | --- ","cbCaia1YqCyGx2P9","https://ap.wps.com/l/cbCaia1YqCyGx2P9","pdf",217946,"English","# Pseudocode\n## Informal step-by-step logic\n## Example prompt: rectangle area and output\n# Flowchart\n## Purpose and shapes used\n## Flowchart structure for the example","[{\"question\":\"Why should pseudocode be written before program code?\",\"answer\":\"Pseudocode is an informal, step-by-step description that helps plan program logic and forces critical thinking about what must be accomplished, making it useful before code is written.\"},{\"question\":\"How does the example decide between “large” and “small” rectangles?\",\"answer\":\"After calculating area as length * width, the flow uses an If-Else conditional: if the area is greater than 100 square units it displays “That is a large rectangle,” otherwise it displays “That is a small rectangle.”\"},{\"question\":\"What are the main symbols used in the flowchart, according to the handout?\",\"answer\":\"The handout describes symbols for flow lines, terminal (start/stop), input/output (parallelogram), processing (rectangle), and decision (diamond).\"},{\"question\":\"What must a flowchart include at the beginning and end?\",\"answer\":\"Every flowchart must begin and end with the terminal shape to signify the start and end of the program’s operation.\"}]","Pseudocode and Flowcharts - An Educational Handout | PDF",13,[149,153,157,161],{"page_no":8,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7d1d8894b2be4fcc48f553458cf4f1de.webp",983,1272,{"page_no":14,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ccc19f8cda0407477b15b255517fe292.webp",982,1270,{"page_no":81,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/2919d89d2e83a1c05f09483f453d8f99.webp",981,1269,{"page_no":19,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/485a9b8bacfd9d9dfafcafdd43f213b4.webp",980,1268,{"list":166,"token":66},[167,173,179,185,191,197,203,209,215,221],{"doc_id":168,"doc_title":169,"file_type":141,"home_preview_img_url":170,"slug":171,"view_count":24,"category_name":30,"create_tm":172},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=1796111879&Signature=4do633HyTlBDBxJ5BvqbopzgH8k%3D","flowcharts-programming-fundamentals",1793914768,{"doc_id":174,"doc_title":175,"file_type":141,"home_preview_img_url":176,"slug":177,"view_count":14,"category_name":30,"create_tm":178},701647,"UNIT: 1 - Flowchart and Algorithm","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012473631/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=50zLxUxMHVLmw48DREAHzMTPs%2FY%3D","unit-1-flowchart-and-algorithm",1794535499,{"doc_id":180,"doc_title":181,"file_type":141,"home_preview_img_url":182,"slug":183,"view_count":19,"category_name":30,"create_tm":184},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=1796111879&Signature=UmiCpqUS1IamXeGTGf3o7IY45k8%3D","flowchart-definition-and-its-symbols-study-notes",1794442296,{"doc_id":186,"doc_title":187,"file_type":141,"home_preview_img_url":188,"slug":189,"view_count":19,"category_name":30,"create_tm":190},701652,"Algorithms Development - Pseudo-code and Flowchart - Lecture 2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012474084/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=pvfrL5abJlmyWxTrHYy%2FB72l%2F6s%3D","algorithms-development-pseudo-code-and-flowchart-lecture-2",1794535511,{"doc_id":192,"doc_title":193,"file_type":141,"home_preview_img_url":194,"slug":195,"view_count":34,"category_name":30,"create_tm":196},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=1796111879&Signature=xWaGdxUIjAv55mDXket7Dn6YwtQ%3D","algorithm-and-flowchart-chapter-1-definition-properties-and-flowchartpseudocode",1793521918,{"doc_id":198,"doc_title":199,"file_type":141,"home_preview_img_url":200,"slug":201,"view_count":81,"category_name":30,"create_tm":202},697706,"Algorithm - Flowchart - Pseudocode","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009856873/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=3E119a7lRK6XhSKOQeo5nRl7l1k%3D","algorithm-flowchart-pseudocode",1794442309,{"doc_id":204,"doc_title":205,"file_type":141,"home_preview_img_url":206,"slug":207,"view_count":29,"category_name":30,"create_tm":208},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=1796111879&Signature=g0%2B3jVjvnUJv18HST78xnNitp2M%3D","unit-1-flowchart-and-algorithm-introduction-and-c-program-basics",1793637912,{"doc_id":210,"doc_title":211,"file_type":141,"home_preview_img_url":212,"slug":213,"view_count":34,"category_name":30,"create_tm":214},673422,"Flowchart in Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990820115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=%2FCR1oTlO4YgNC6P%2BH7B3pZuPwuM%3D","flowchart-in-programming",1793637650,{"doc_id":216,"doc_title":217,"file_type":141,"home_preview_img_url":218,"slug":219,"view_count":29,"category_name":30,"create_tm":220},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=1796111879&Signature=bZ1ykfhTlDAUCSOLRgC9RvpYHqY%3D","8785_week-3-les0n-note-flowchart",1793525132,{"doc_id":222,"doc_title":223,"file_type":141,"home_preview_img_url":224,"slug":225,"view_count":19,"category_name":30,"create_tm":226},697704,"Introduction to Programming in C++ - Algorithms, Flowcharts and Pseudocode","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009856755/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=pEWl%2BriqEDRdNz2Y8zlfdVCl0zE%3D","introduction-to-programming-in-c-algorithms-flowcharts-and-pseudocode",1794442290]