[Music] now there are different types of languages as mentioned a while ago assembly language is actually considered as a low-level language for high-level language this includes the basic or the visual basic we have that the fortran the cobol the pascal the c the c plus plus of course c sharp in java so this high level languages uses already what we call compiler compiler translate a program written in a high level machine language so in this case when you say high level it's already like an english language the program will already uses variables that can perform
also arithmetic operations we do not need already to use demonic keywords to store values to load values and multiply values so let's say for example as the example earlier we have wages is equal to rate times rs for example voc plus plus instead of using load rate multiply ours store wages we use the same instructions as well as what we had in our equation just that we change the period or the sometimes we use x for multiplication so we use as there is sign since acid is sine is actually the key word or the syntax
for multiplying values in c plus and in other high level languages now this is actually an example already of processing a c plus plus program or this is already what we call the syntax in c plus plus program okay so later on we're going to discuss and we're going to define this uh program step by step so for now let's keep that okay so now we saw already an example of a programming splash how are we going to execute a c plus class program so first before we execute the c plus plus program if we
want to type the code or the keywords or the syntaxes we need to use an editor okay so an editor in c is actually uh to create a source program in c plus plus so that means whatever we type whatever keywords we actually included in the editor is actually what we call the source program in c plus plus of course in programming in c plus plus programming we use also a prep processor prep process for directives prep processor directives are this one that includes the sharp sign that includes syntax and a header file or a
library okay so again preprocessor directive begins with a sharp sign or a pound sign and are processed by the pre-processor and other compilers use also object programs or obj but in our cases we're going to deal with dev c plus plus there's no more obj format only um that cpp and that xc okay now we have also a linker and a loader so when you say linker linker is actually combines object program with other programs provided by the sdk to create executable code so if we have already a linker it will be actually um generated
to an exec file or that xa so after the linker of course once we created the executable code we need to also use a loader a loader is a loads and loads executable programs into the main memory so after we have the linker and the loader we are already ready to execute the program and this is the last step okay so in summary of that okay so as mentioned a while ago we're going to use c plus plus programs particularly in our subject and to do that we need to have uh an editor so we're
going to use their c and then c plus plus already includes editor so in an editor we need to type the program and the first part of the program of c plus is what we call the pre-processor so again preprocessors begins with a sharp sign and in addition to that it includes also the header files like iostream and then once the program has been typed on the editor we can already compile it and compiler will check on the syntax errors so if there are sentence errors so we need to debug okay so we need to
debug it okay and go back to the editor to edit our code so again we use preprocessor if we need something and then again the compiler will compile the code if there are no syntax error okay then it will be proceeded in the linker to create an executable code as well as in the loader and now after that if there are no syntax error we already have an executable code we can finally execute the program and get the input and then process it and we can see the output of the program so if you have
any questions regarding this uh particular slide you may actually do the consultation or during our lecture in chapter two by next meeting monday you can actually ask questions before we start the discussion for chapter two okay so right after we discuss all about the different types of programming languages so what should be the programming with the problem analysis coding execution cycle so programming is a process of problem solving so when you say problem solving what are the techniques in the problem solving first of course if you have the problem you need to analyze first the
problem okay so when you analyze the problem what is analyzing the problem okay so you need to understand well step by step the problem and you need to um outline the problem requirements okay so once you already have the requirements you know already what must be the variables or what are the variables what must be the input how are we going to process the output and what must be the output so you can already have the design steps or perform the algorithm to solve the problem first before you do it in c plus plus program
so when we say algorithm algorithm is actually a step-by-step problem solving process solution achieve infinite amount of time so when you say if you need okay it's not infinite it's spin it when you say finite there must be a start and there will be also or there must be an end to your algorithm okay so to do the problem analysis coding execution cycle step one is we need to analyze the problem so as mentioned a while ago you need to outline the problem and also the requirements and then you design the steps perform algorithms such
as flowchart or soto code so most of the programmers use says pseudocode instead of flowchart so when we differentiate so to hold the flowchart flowchart is basically the graphical or the pictorial representation of an algorithm uh [Music] and so the code is one pseudocode is actually it's like an instructions already like um different um programming language so after analyzing the problem we can already implement the algorithm okay so how we're going to implement the algorithm of course we're going to implement it in code so in our case we're going to use c plus and then
we can also we can actually already verify the algorithm if it's working by what again by testing it by compiling it if there are no syntax errors we can already perform inputs and then we can identify whether our inputs has a logical errors so although it's syntactically correct okay we cannot assure that it's also um logically incorrect or logically correct matter okay in step three maintenance we can use and modify the program okay we can edit the program or we can actually edit the codes if the problem domain changes [Music] you