answersLogoWhite

Computer Programming

A category for questions about computer programming and programming languages.

24,411 Questions
Internet
Computer Programming
Facebook
Fan Fiction

How do you post something on the internet?

The first thing you must do is find somewhere to post it. The next thing you need to do is copy and paste it. After that you must save it to documents and then when you go to the website you want to post it on just double click and then it will say paste and then if you click it, it will pop up on the website and ask you if you want to post this image and if the answer yesthen you will click sure if not please click no thanks.

001
Computer Programming
Database Programming
The Difference Between

What is file oriented approach and database oriented approach?

The file is store the data as document type, we don't have give particular data-type of data which will be store in it.

But in database system there are specified structure (like in table format) of data store. First we have to make format with particulate data-type for the data, which will store in it.

other

The file has no record system, while database system store data with record in row, it is easy to maintain.

405406407
Computer Programming
C Programming
JavaScript

Write a c program to print factorial?

/*program for finding the factorial*/

void main()

{

int a,b=1;

clrscr();

printf("Please enter any number to find its factorial\n");

scanf("%d",&a);

while(a>1)

{

b=b*a;

a--;

}

printf("factorial is %d",b);

getch();

}

359360361
Computer Programming
Elements and Compounds
Atoms and Atomic Structure

What is the charge of Cs?

Cs also known as cesium has an atomic number of 55 which means it has 55 electrons. as well as having a atomic mass of 132, which means that there are 132 particles in the nucleus made up of protons and neutron, protons having a positive charge and neutrons having a neutral charge (no charge), electrons have a negitive charge that orbit the nucleus creating the atomic structure for Cs. hope this helped :D

361362363
Computer Programming
Cricket (Sport)

What is a 'flat wicket' in Cricket?

The more grass a wicket has on it, the more "lively" it will be. Which means that the ball is more likely to move around. If a wicket is flat, then it will be bare and is unlikely to offer assistance to bowlers. Batsmen usually enjoy the wicket being flatter.

337338339
Computer Programming

What are the steps in Object Oriented Analysis?

1) The analysis phase starts with a problem statement which includes a list of goals and a definitive enumeration of key concepts within a domain. This problem statement is then expanded into three views, or models: an object model, a dynamic model, and a functional model. The object model represents the artifacts of the system. The dynamic model represents the interaction between these artifacts represented as events, states, and transitions. The functional model represents the methods of the system from the perspective of data flow. The analysis phase generates object-model diagrams, state diagrams, event-flow diagrams, and data-flow diagrams. The

analysis phase is now complete.

The major step of analysis:

•obtain a problem statement and a system description

•develop use cases

•build the analysis (domain or business) object model

•develop dynamic model

•verify, iterate, and refine the models

Analysis output:

•problem statement, and system description

•use cases

•object model, dynamic model

341342343
Computer Programming
Microsoft Excel

How do you make a dot plot on Excel?

It's called an X-Y scatter plot. The procedure is different depending on which version you have. Basically, you highlight all of the cells containing, the data; click on 'Insert' then click the icon that looks like a 'dot plot' and it should have the word 'scatter' underneath it.

339340341
Computer Programming
C Programming

How can you define null statement in loop in C programming?

If you are using for loop

for(;;);

or

you can also define condition and iterations but the loop has to close there itself without any statement inside it.

In the similar way you can define while and do while loop without any statement.

337338339
Java Programming
Computer Programming

What are the advantages of platform independent programming languages?

A platform is a machine that interprets and executes code. Different platforms have different rules when interpreting code, as humans read different languages uniquely.

Platform independent programming languages are universal, and can execute on all major machines. Programmers may write one script and needn't worry about target machinery.

This is the sole advantage compared to platform dependent languages, which execute on a single machine. Unless a programmer would like the executable to work on one machine, additional work is necessary to bring it to other platforms.

333334335
Computer Programming
C Programming

Do while loop program in C for printing the even numbers?

main()

{

int n,i=1;

printf("Enter the Number till you want to print even numbers");

scanf("%d",&n);

printf("Even Numbers till %d are",n);

while(i

{

if((i%2)==0)

printf("%d",i);

i++;

}

}

OR

main()

{

int n,i=1;

printf("Enter the Number till you want to print even numbers");

scanf("%d",&n);

do

{

if(i%2==0)

printf("%d",i);

i++;

}while(i

}

OR

void main()

{

int i=0,n;

printf("Enter the number till you want to print even numbers:");

scanf("%d",&n);

do

{

printf("%d\t",i);

i+=2;

}while(i<=n);

}

333334335
Computer Programming
Java Programming
C Programming

Why are local variable stored on stack?

Because they are created and destroyed on 'last-in-first-out' principle.

327328329
Microsoft Windows
Computer Programming

How do you Open Local File in AS3?

set it up as a URL but put the file location in instead and it will open i, you will need to change the \ to / or the other way around i forget :)

327328329
Computer Programming
Education
C Programming

What is linker?

C language has a function that contains the object code for predefined functions.for example,the printf() is a library function.if the C program uses any of the library functions, the object code produced for the source code should be combined with the object code of the library functions to generate the final executable code.this process is called linking and it is performed by a 'linker'.

315316317
Software and Applications (non-game)
Computer Programming
Database Programming

Example of open source appication software?

Examples of open source software

  • Linux (see http://www.linux.org/): a computer operating system and kernel originating as a UNIX system and existing in many versions.
  • GNOME (see http://www.gnome.org/): a desktop development environment providing tools for developing desktop applications (as well as its own basic desktop applications) and available for Linux and other UNIX systems.
  • KDE (see http://www.kde.org/): another desktop development environment.
  • Apache (see http://www.apache.org/): a web server program (for supplying pages in response to requests) used in most web server computers and available for Windows as well as Linux and other UNIX systems.
  • Firefox (see http://www.mozilla.org/firefox/): a web client program (for viewing and hearing web pages) available for Windows and Mac as well as Linux and other UNIX systems.
  • Dovecot (see http://www.dovecot.org/): an email server program (for sending and receiving email) supporting POP3 and IMAP and available for Linux and other UNIX systems.
  • Postfix (see http://www.postfix.org): an email server program (for sending and receiving email) supporting SMTP and available for Linux and other UNIX systems.
  • SquirrelMail (see http://squirrelmail.org/): an email application (for reading and writing email through a web client program) supporting IMAP and SMTP and available for Windows and Mac as well as Linux and other UNIX systems.
  • Thunderbird (see http://www.mozilla.org/thunderbird/): an email client program (for reading and writing email) supporting POP3, IMAP and SMTP and available for Windows and Mac as well as Linux and other UNIX systems.
  • OpenOffice (see http://www.openoffice.org/): an office application set (for word processing, spreadsheet manipulation, picture drawing and data base access) compatible with all other major office application sets such as Office and available for Windows and Mac as well as Linux and other UNIX systems.
  • KOffice: (see http://www.koffice.org/): another office application set.
  • Asterisk: (see http://www.asterisk.org/): a Private Branch eXchange (PBX) providing features such as interactive voice response, conference bridging and call queuing (as well as analogue, digital and VoIP telephony), supporting H.323, SIP and IAX2 (and other VoIP protocols), and available for Mac as well as Linux and other UNIX systems.
  • FreeSWITCH (see http://www.freeswitch.org/): a VoIP development environment providing tools for developing applications like phones and switches, supporting H.323, SIP and IAX2 (and other VoIP protocols), and available for Windows and Mac as well as Linux and other UNIX systems.
  • GnuGK (see http://www.gnugk.org/): a VoIP gatekeeper (for some H.323 deployments) available for Windows and Mac as well as Linux and other UNIX systems.
325326327
Business & Finance
Computer Programming
Job Training and Career Qualifications

What does it mean to compile a report?

Hi There,

Report Compilation: Actually when we are making reports there are various items reported separately to get exact output, then from this we are going to get one consolidated final output which is compiled with all the output received separately.

305306307
Statistics
Computer Programming

What is traversing in data structure?

visit each element in a list at least onces.

319320321
Computer Programming
Computer Hardware
Visual Basic Programming

What is the full meaning of BASIC?

Beginners all-purpose symbolic instruction code

317318319
Science
Computer Programming

How flashget works?

It downloads files using several simultaneous http get requests for different byte ranges, and then puts the pieces together. This sometimes circumvents bandwidth caps put in place by the people who run the site which limit the speed on each http connection.

321322323
Computer Programming
Algebra

How is computer programming related to algebra?

Computer Programming is all about algebra. In algebra, you solve for variables like x and y in their simplest form, in programming, the variables can pass on values or accept values and give you the result.

For eg:

Find the area of a square with side 'a' units.

In algebra: Area=a2.

In Programming, the program can find the area by taking input from the user.

float area,a;

cout<<"Enter length of side";

cin>>a;

area=a*a;

cout<<"The area is "<

Basically, Programming is bringing algebra to life.

319320321
Computer Programming
Unix

Write a shell program in unix to add two numbers?

echo "enter the value of a"

read a

echo "enter the value of b"

read b

c=`expr $a + $b`

echo "the sum of a and b is $c"

Or, alternatively, one could also...

#!/bin/sh

A=5

B=10

C=`echo "$A + $B"|bc -l`

echo "$A + $B = $C"

The above examples illustrate the use of back ticks to fork a child process in shell, however the first example uses the 'expr' command to perform the arithmetic while the second example uses the 'bc' command to perform the calculation. As is nearly always the case in Unix or Linux, there are multiple methods of arriving at the same correct solution.

While the wonderful and all powerful Perl language is perhaps, technically, not a shell, it is theoretically possible to accomplish this goal in Perl as well. Let me see now, to make this example as educational as possible, I'll use a couple of subscripts of the array @array to store our values and an off-the-shelf printf function to display the results of our calculations...

perl -e '@array = (5, 10); printf("%s + %s = %s\n", $array[1], $array[0], ($array[0]+$array[1]));'

As the purpose of this site is to teach, I briefly entertained and then discarded a notion to shoot for maximum obfuscation. Larry, Randy and Nathan will be proud of me I hope. :)

Naturally, there are numerous other ways to accomplish this goal in Linux.

303304305
Computer Programming

What are disadvantages of event driven programming?

Disadvantages: Complex, Hard to control, Time consuming to get event loops and event handlers running.

314315316
Software and Applications (non-game)
Computer Programming

Definition of In-house software development?

When a company needs a piece of software written they sometimes choose to use programmers within their own company to write it. This is known as "in-house" development.

313314315
Software and Applications (non-game)
Computer Programming
Java Programming
Computer Science

What are the names of any four procedural programming languages?

  1. ABC
  2. Ada
  3. Algol 60
  4. Algol 68
  5. APL
  6. Arc
  7. Assembly
  8. Awk
  9. BASIC
  10. Batch
  11. BCPL
  12. Befunge
  13. BETA
  14. C
  15. C++
  16. C--
  17. C# (pronounced C-sharp)
  18. CHILL
  19. Clipper
  20. Cobol
  21. CobolScript
  22. Component Pascal
  23. Cyclone
  24. D
  25. DATABUS
  26. Euphoria
  27. Forth
  28. Fortran
  29. Free Pascal
  30. GNU Pascal
  31. Icon
  32. IDL
  33. Jal
  34. JavaScript
  35. Jovial
  36. Lagoona
  37. Leda
  38. Limbo
  39. Lua
  40. m4
  41. Maple
  42. Mathematica
  43. MATLAB
  44. Modula-2
  45. Modula-3
  46. Mumps
  47. Oberon
  48. Objective Caml (OCaml)
  49. Occam
  50. Oz-Mozart
  51. Pascal
  52. Perl
  53. PHP
  54. PL
  55. PL/1
  56. Pliant
  57. PL/SQL
  58. PostScript
  59. PowerBuilder
  60. Proteus
  61. REBOL
  62. Rexx
  63. S-Lang
  64. Small C
  65. Snobol
  66. Tcl-Tk
  67. T3X
  68. VBA
  69. Visual Basic
  70. Visual DialogScript
  71. Yorick

Note: Some of these languages, such as PHP, Perl, Caml/OCaml, and IDL also support object oriented programming. Others on the list (C++, JavaScript, C# ) are primarily object-oriented languages which can also (though less commonly) be used to program procedurally.

Some are macro or scripting languages (Rexx, Awk, m4) which, while they do support some procedural concepts, aren't really procedural languages, but rather interpreted streams.

Also note that Assembly is NOT a high-level language, and generally is not considered a procedural language, as it doesn't have enough abstraction.

Finally, traditional COBOL is NOT a procedural language (in fact, one of the long-standing criticism of it is that it lacks any structured programming characteristics). Current-day COBOL has some ability to use procedural programming concepts, but, overall, should not be considered a real procedural language. SNOBOL is similar, in that the original version were certainly not procedural in nature, but modern versions are much more structured programming friendly (and can be considered a procedural language).

311312313
Computer Programming
C Programming

What are the factors that determine the choice of programming language when developing an application?

What programming language you know would be a good place to start.

310311312
Software and Applications (non-game)
Computer Programming
Visual Basic Programming

How do you convert a .doc file into a .pdf file using VB code?

Originally, a full version of Adobe's Acrobat application was required to create PDF (Portal Document Format) files from any application, including Microsoft Word. Subsequently, a number of companies sold inexpensive PDF conversion software to compete with the more expensive Adobe product. These applications, like Acrobat, used a printer driver to "print" Postscript-based PDF files. The Mac OS central window server caches window graphics in PDF, allowing any Macintosh application to print to a PDF file from within the OS.

Today, all current versions of Microsoft Word will save directly into PDF format. There's no need to use Visual Basic, assuming you have Microsoft Word.

You can create PDF files programmatically in VB6. You'll need the mjwPDF class and the appropriate PDF fonts. A tutorial on the subject has been attached to this page as a related link: Tutorial - Create PDF files with VB6

Inaddition, you also can use enolsoft PDF Creator to do that. It's fast and simple yet.

309310311

Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.