answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is the definition of a file based approach?

It is a method for storing and organizing computer files and the data they contain to make it easy to find an access.

Difference between linear n nonlinear data structures?

A data structure is linear if every item is related (or attatched) to its previous and next item(e.g.array, linked list) and it is non-linear if every item is attached to many other items in specific ways to reflect relationships(e.g, n-ary tree). In linear data structure data items are arranged in a linear sequence. In non-linear data structure data items are not in a sequence.

A different Opinion (learnt while watching a video on Data Structures) is that Linear data structures are the Data structures implemented using arrays (with consecutive data allocation for each member of the array) while Non Linear Data Structure refers to an implementation in terms of use of pointers (such as a linked list).

--Research Reqd.--

How do you fix mw2 corrupt data?

There doesn't seem to be an actual solution to this problem. I've heard that uninstalling and then reinstalling Modern Warfare 2 will help, although I'm reluctant to do this. I like my trophies

What is tail recursion in data structure?

If there is n consecutive execution in a recursive function, then the function will return the value to itself either 1 or n-1 times.

but in normal recursion it returns n times the value to that function.

What is volatile oil?

It is oil that will evaporate at normal temperature and pressure.

What is the difference between high level middle level low level languages?

The more that the language does for you, the higher level it is considered.

The ultimate low level language is machine language. With machine language you have to tell the computer literally everything to do at a very detailed level. You are essentially speaking in 1s and 0s -- the language of the processor. This means managing the memory used, deciding where and how you will store and retrieve information... with machine language, there is no notion of how to generate a user interface ... you would be face with the prospect of redesigning how to display windows and buttons, how to make them "act", how to manage a user interaction. Of course nobody but chip designers would use that low level a language anymore ...

With a higher level language, the language does more for you. It "knows" how to store and retrieve complex data structures -- it knows how to read and write from files, it knows how to draw windows and buttons -- so you can use a couple of commands to display a window, where it would take literally hundreds of lines of code to do the same thing in a low level language.

How do you convert from Excel to open office?

Save your file as Excel xls format.

Use the File-->Save As... menu and select the file type in the save dialog.

For a video How to, see related links.

What are the advantages of locally installed software?

Anything you install off a CDROM would be locally installed. If you lose the internet you can still use Microsoft Office.

Anything you download would be locally installed.

Web applications like gmail are *not* locally installed. If you lose the internet you can't check your gmail. You can't look at old emails either.

What computer programming language is used to program robots?

Robotics programming is usually done in C or a derivative of C, although it's entirely possible for other languages to be used. For example, "RobotC" is a common language used for various micro-controllers, however it's now possible to use Java as well with Sparkfun's "IOIO" microcontroller.

What are event driven programs used in?

set counter K to 0

repeat

{

if a number has been entered (from the keyboard)

{

store in A[K] and increment K

if K equals 2 print A[0]+A[1] and reset K to 0

}

}

What kind of data do you put in arrays?

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

You should use arrays when you have several pieces of related data, of the same type. As an example, let's suppose you have a series of measurements, for example, temperature measured every few minutes. It doesn't make sense (from a programming point of view) to use a different variable for every measurement, so you store the measurements as a group - as an array.

How do you program rcr412b?

Make sure the device is on. Hold down the tv (or whichever device you're trying to program) button and the power button simultaneously until the red light stays on solid. Then press the power button, it will flash one time, and keep pressing slowly, letting it flash until the device turns off. Then press the stop button...and it is programmed. Yay, - Rony

Why do you think designing a program before you create it is beneficial?

The importance is that when you design it before you implement it, you have a better chance of eliminating design flaws from the beginning. If you start out coding and later on figure out you have a design flaw, it is extremely painful to go back and reimplement everything. Certain software engineering experts have estimated that it can cost up to 10x more (time and money) to fix a design problem in the later stages of software development than in the early stages.

What law do computer hackers break?

The computer Misuse Act.
Hacking is not an illegal activity. That is, there are no laws against hacking per se. Hacking only becomes illegal when an actual law is broken. Hacking is a general term that originally applied to software and firmware programs where hackers would reverse engineer other company's intellectual property to see how it worked and possibly adapting it for another purpose. This is no different to taking an engine apart and adapting it for your own use. However, if the hacker then attempts to sell the modified software as his own, it becomes illegal -- software theft. Hacking also extends to networks, where the hacker will infiltrate a network with a view to stealing information. This is also illegal. However, hackers are often employed to test a network's security. This is perfectly legal because the hacker is under contract. The terms white-hat hacker and black-hat hacker are commonly used to differentiate between the legal and illegal forms of hacking. Illegal forms of hacking are usually covered by computer fraud and computer abuse laws.
The computer 'Minuse Act'. Apparently.............although I think it is illegal anyway...........just my opinion.

Disadvantages of Flowcharts?

25.5 ADVANTAGES OF USING FLOWCHARTS

The benefits of flowcharts are as follows:

  1. Communication: Flowcharts are better way of communicating the logic of a system to all concerned.
  2. Effective analysis: With the help of flowchart, problem can be analysed in more effective way.
  3. Proper documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes.
  4. Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and program development phase.
  5. Proper Debugging: The flowchart helps in debugging process.
  6. Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart. It helps the programmer to put efforts more efficiently on that part

25.6 LIMITATIONS OF USING FLOWCHARTS

  1. Complex logic: Sometimes, the program logic is quite complicated. In that case, flowchart becomes complex and clumsy.
  2. Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely.
  3. Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
  4. The essentials of what is done can easily be lost in the technical details of how it is done.

What is a two dimensional array in c?

its simple

just do this swappping

for(i=0;i<m;i++) /*A*/

for(j=0;j<i;j++) /*B*/

{

x=a[i][j];

a[i][j]=a[j][i];

a[j][i]=x;

}

I think A and B need a change :

/*Permutation : */

for ( i = 0 ; i <= lig ; i++ ) /*A*/

for ( j = 0 ; j <= i ; j++ ) /*B*/

{

int permut = MatA[i][j] ;

MatA[i][j] = MatA[j][i] ;

MatA[j][i] = permut ;

}

/*End of permutation */

printf("\nDISPLAY MATRIX : \n") ;

for ( i = 0 ; i < col ; i++ )

{

for ( j = 0 ; j < lig ; j++ )

{

printf("%d", MatA[i][j]) ;

}

printf("\n") ;

}

How can you learn hacking free of cost?

Learning how to hack computers is not the easiest education in the world. It also depends on what kind of hacks one wants to do: Software or hardware. For hardware hacks, it is essential to learn the basics of electronics. Buy some electronics books from Amazon and get some electronics kits and parts from Radio Shack. That should get you started. For software hacking, it is essential to learn programming. Buy some programming books from Amazon or Barnes and Noble. The languages to start with, that will get you a long way is C++ and Assembler. Take note that Assembler is one of the languages that is closest to pure machine language, but it is much more difficult to learn. Start with C++ and see if you can handle it.

Is a programming software the same as programming tool?

To use an analogy, a programming language is similar to any natural language such as English. We use the language to construct expressions which can be combined to form statements, just as we use English to construct expressions which can be combined to form sentences.

Programming tools are simply tools that help us to write code, in much the same way that word processors help us to write letters. In programming, the main tools we use are code editors, compilers and debuggers. But just as a spell-checker won't help us write better poetry, programming tools won't help us write better programs. For that we must understand the language itself.

When invoking a constructor from subclass its super class's no-arg constructor is always invoked?

Implicitly: (i.e., you do not code for it, but works as if you did)

calling the no-argument constructor of the subclass, and there is no explicitly "redirect" codes.

Explicitly:

a constructor with base() / super() in the implementation, even that invoked constructor required some arguments.

C# example: public SubClass(string whatever) : base() {//...}

What jobs can you get with an associates degree in computer programming?

Wondering the same, wish someone would answer.

With associate degree in computer programming you can get an entry-level programming job in a fairly short amount of time. It can also be used as a stepping stone to a bachelors degree in a technology field. Associate degree in computer programming give students hands-on skills they need to be productive software developers in many industries, using specific skill sets and programming languages.

Why are pointers needed in C programming?

pointer is used when we want to retain the change in values between the function calls.

Similarly double pointer is used when we want to retain the change in pointers between the function calls. If you want to modify pointers than you need double pointer to retain the change.

What is the difference between a process and a task?

TASK and ProcessTASK : A Particular Work to be Done is known as TASK

PROCESS : one or more PROCESS will be required to complete a task.

A task is like an assignment and the process is the flowchart or the steps you will follow to complete that task.