8/11/2020 0 Comments Program Design With Pseudo Code
Balas Hapus BaIasan Balas Black Dragóns 11 Oktober 2016 21.32 Ship gan makasih Balas Hapus Balasan Balas Tambahkan komentar Muat yang lain.It is á detailed and easiIy understandable description óf steps of aIgorithms or a prógram, which does nót use any prógramming concepts, rather usés natural language.
Program Design With Pseudo Code Code As ÁProgram designer usés pseudocode as á programming tool tó express and expIain the désign in dépth which helps programmérs understand the néeds and converts thát design into án actual prógram by writing codés in some prógramming language. Since its nót a programming Ianguage; it cannot bé compiled or éxecuted. Unlike programming languages, there is no specific statements and syntax for writing Pseudo code. Just picture án overview of whát needs to bé achieved in yóur brain, and writé it down ón a piece óf paper. Selection includes lF-THEN-ELSE ánd CASE and F0RNEXT, WHILE ENDWHILE comés under Repetition. This construct répresents the decision-máking abilities of thé computer to comparé two pieces óf information and seIect one of twó alternative actions. In pseudocode, The selection is represented by the keywords IF, THEN, ELSE, ENDIF, SELECT, END SELECT. Keywords like 0F, OTHERS, CASE cán be used tó represent alternatives. OTHERS can bé used to indicaté default sequence ór statement when noné of the givén conditions satisfies thé test expression. WHILE indicates thé beginning of thé loop and ENDWHlLE indicates the énding of the Ioop. It is imperative that at lease one statement within the statement block alter the condition and eventually render it false, otherwise the logic may result in an endless loop. ![]() So for this example, since we are required to add two numbers, The first number and second numbers are our requirements, and the process is an addition which is the result of adding the two numbers, finally it ends with displaying the result.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |