1_sites_google_com_plmun_edu_ph_fop2024reviewer_home.pdf

Full Transcript

PAGE URL: https://sites.google.com/plmun.edu.ph/fop2024reviewer/home Fundamentals of Programming Search this site Skip to main content Skip to navigation Fundamentals of Programming Pointers to Review FUNDAMENTALS OF PROGRAMMING MIDTERM BY: MS. KIRSTEN PATRICIA VILLANUEVA, MIT (FOP COORDINATOR...

PAGE URL: https://sites.google.com/plmun.edu.ph/fop2024reviewer/home Fundamentals of Programming Search this site Skip to main content Skip to navigation Fundamentals of Programming Pointers to Review FUNDAMENTALS OF PROGRAMMING MIDTERM BY: MS. KIRSTEN PATRICIA VILLANUEVA, MIT (FOP COORDINATOR) TERMS AND DEFINITIONS Algorithm An algorithm is an effective step-by-step procedure for solving a problem in a finite number of steps. Pseudocode It is an algorithm in english statements. Electricity It is the initial requirement of a computer to operate. Program a set or list of instructions that directs the computer to its operations Programmer The person who develops a program. Machine Language A low-level language Binary these 1's and 0's are also known as machine level language or low level language Mnemonic code It is an alphabetic abbreviation of program coding Compiler It is used to translate source code language to low-level language that the computer can understand. High Level Language This language requires either an interpreter or a compiler to convert the English-like instruction into machine language Input Stream It is a sequence of characters from an input device to the computer. Insertion Operator > Flowchart A diagram representing the detailed sequence in which a combination of steps or operations is to be performed. It consists of labeled geometrical symbols that are interconnected to provide a pictorial representation of an algorithm. FLOWCHART SYMBOLS It represents the beginning and the end of the flowchart. It contains the words (start) and (stop). Lines represent the flow of the sequence and direction of a process. It represents the process that initializes a value of a variable. Input and Output Symbol It performs the processing function such as calculation. A decision or branching point. Lines representing different decisions emerge from different points of the diamond. It indicates that the flow continues on a matching symbol containing the same letter somewhere else on the same page. It indicates that the flow continues on a matching symbol containing the same letter somewhere else on a different page. It is used to provide addtional information about another flowchart symbol in the form of comments or remarks. It represents a subroutine of flowchart. PROGRAM CONTROL STRUCTURES FLOWCHART Sequence Structure The flowchart process is manipulated from one symbol to another in a straightforward manner. Selection Structure (Conditionals) The basic premise of selection flow control is, the computer decides what action to perform based on the result of a test or condition equalling true or false. Repetition Structure Iteration (Loops) It is a flowchart that provides repetitive execution of an operation when a condition is satisfied. Identifier All C++ variables must be identified with unique names. These unique names are called identifiers. It is a name given to a variable, function, or another object in the code. Sample Program that accepts and adds two numbers from the user. OUTPUT Report abuse Page details Page updated Report abuse This site uses cookies from Google to deliver its services and to analyze traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. Learn more Got it

Use Quizgecko on...
Browser
Browser