answersLogoWhite

0

Check your text book. The answer is there

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Algebra

Difference between top down program design and bottom up program design?

Top down Program Design : Begins the design with main or top-level module, and progresses downwards to the lowest level modules or subsystem Bottom down Program Design : Begins the design with the lowest level modules or subsystems, and progresses upward to the main program, module or subsystem.


What is the difference between command and statement?

The difference between command and statement is that command are generally executable in direct mode. Commands usually perform some type of program maintenance such as editing, clearing, running, or saving programs. On the other side statements are the part of a computer program and run in compilers or indirect mode.


Difference between syntax error and execution error?

Syntax error is when something is wrong with how a code is written. An execution error occurs when the program comes up to something that it cannot handle because it does not have the code for it.


What is difference between interpreters and compiler?

Interpreter An interpreter is given a computer program to run and it is executed (or performed) line by line. It simply reads a line of code (in the programs native language (ie English Basic) and performs the instructions one by one. After each line has been completed, the next on is accessed and duly performed until the program is finished. The syntax of the program may have errors in it and these are not found out until the program is run. The user must have the source code to be able to run the program (some interpreters produces a tokenised version of the source code to speed up execution of the program and reduce disk storage.) Compiler. With a compiler, the entire code is translated into machine code before it is run and then saved to disk for future use. The entire program must be 100% syntax correct before the program is translated and saved to disk. Several other parts of the program (called libraries) can be linked with the program to produce the final product. Test compilations usually are performed to avoid a large number of compile errors at once. The compiled program is accessed by the user but they do not need the source code to use the program. The same program run as a compiled program will usually outperform an interpreted on.


What is the difference between selection and iteration constructs?

Selection constructs allow a program to choose between different paths of execution based on conditional statements, typically using constructs like if, else if, and switch. In contrast, iteration constructs enable repeated execution of a block of code as long as a specified condition is true, using loops such as for, while, and do-while. Essentially, selection deals with branching decisions, while iteration focuses on repetition.

Related Questions

What is the difference between an algorithm and a program?

An algorithm is a step-by-step procedure for solving a problem, while a program is a set of instructions written in a programming language that implements an algorithm to perform a specific task on a computer. In simpler terms, an algorithm is like a recipe, and a program is like the dish you make using that recipe.


What is the difference between a program and an algorithm, and how do they each contribute to the execution of tasks in computer science?

An algorithm is a step-by-step procedure for solving a problem, while a program is a set of instructions written in a specific programming language to implement the algorithm on a computer. Algorithms provide the logic and structure for solving a problem, while programs translate the algorithm into a format that a computer can execute. Together, algorithms and programs work to efficiently and accurately perform tasks in computer science.


What is the relationshjip between a computer program and an algorithm?

A computer program can use a pre-programmed Algorith to calculate what you want it to calculate.


What is the difference between an algorithm and a program, and how do they each contribute to the process of solving computational problems?

An algorithm is a step-by-step procedure for solving a problem, while a program is a set of instructions written in a specific programming language to implement the algorithm on a computer. Algorithms provide the logic and structure for solving computational problems, while programs execute the algorithm to produce the desired output. In essence, algorithms define the problem-solving approach, while programs implement that approach to find solutions.


What is the difference between programming and algorithm?

A program is a detailed set of instructions for a computer to carry out, whle an algorithm is a detailed sequence of steps for carrying out a process.


CPP Program for Implementing Knuth-morris-pratt pattern matching algorithm?

what is the pure algorithm instead of cpp program?


What is the difference between service and program?


How is a pso program in matlab..how is it created from algorithm..please help?

The PSO or Particle Swarm Optimization Program algorithm in MatLab is created by first creating a binary genetic algorithm.


What is the What is the difference between program and program?

Program is the US spelling.Programme is the UK spelling.


Is an algorithm easy to program?

Some of them are.


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield