answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is database administrater?

Someone who administrates a database. This typically includes the supervision of the data entry systems and their operators to minimise/eliminate input errors, maintenance of the storage systems to ensure correct and efficient operation, and maintenance of the processing system to ensure the output is produced both efficiently and correctly.

What is the purpose of save as?

The editing command "Save as" is used to save a current named file under a different name, e.g. to make a copy or backup file, or to leave the previous form of the file unchanged while still keeping the current changes for access (useful if you have overwritten information and cannot undo the recent changes).

Usually a Save As command for a new or unnamed file will do the same thing as simply Save.

How do you write a assembly language program to subtract two 8 bit numbers?

Code for 8085 microprocessor.

MVI A, Number1

SUI Number2

The code works as follows:

Register A = Number1 - Number2

What does the Strong Tag do?

The Tag

The text between these tags will be strong

The strong tag is another way to end up with bold text.

How do you convert a torrent file to pdf?

A torrent file is a set of instructions for a "torrent application" to find and download the files described in the torrent; it does not contain the actual file, and will never be useful as a PDF or any other type of text document. As such, the user of a torrent file will need a torrent application, such as BitTorrent, to download the files referenced in the torrent file. Properly installed, a torrent application should automatically start downloading any files referenced by the torrent automatically. Assuming the torrent refers to a PDF file, once the download is complete, there will be a PDF file in the download folder that can be opened by any PDF viewer.

Where can i get unreal engine 2?

Go to:

http://unrealtechnology.com/features.php?ref=past-versions

Can you ask for a raise as a computer programmer?

It's dependent upon your boss and the business. This is something that you should have discussions with your superiors about.

How do you print highest number in an array in C language?

#include <iostream>

using std::cout;

using std::cin;

using std::endl;

void input(double arr[], const int arr_size);

double max(double arr[], const int arr_size);

int main()

{

const int arr_size = 5;

double arr[arr_size] = {0.0};

input(arr, arr_size);

cout << "Highest number is: " << max(arr, arr_size) << endl;

system("PAUSE");

return 0;

}

void input(double arr[], const int arr_size)

{

cout << "Enter " << arr_size << " elements to find the highest:" << endl;

for (int i = 0; i < arr_size; i++)

{

cout << (i + 1) << " element is: ";

cin >> arr[i];

}

}

double max(double arr[], const int arr_size)

{

double highest_num = arr[0];

for (int i = 0; i < arr_size; i++)

{

if (highest_num < arr[i])

{

highest_num = arr[i];

}

}

return highest_num;

}

Is there any way I can make a online game like WolfQuest?

WolfQuest was made using Unity 3D Pro - this program does cost quite a bit to purchase.

There is a free version of Unity you can try out that provides some basic scripts, but as long as you know how to code your own scripts -- I believe Unity uses Javascripting; could be wrong, I'm no programmer! -- but it lacks most of the features the professional version has to offer.

You can get the program for free there, but again for Pro, you'll need to purchase it.

How do you draw a triangle using logo commands using three lines?

fd 60 rt 120 fd 60 rt 120 fd 60 rt 120 will cause the turtle to draw

a triangle. The square brackets indicate that the enclosed commands are

to be executed three times, repeat 3 [fd 60 rt 120]

Search Google with: "logo commands triangle" and have a look through the

websites on the subject.

Why software developer left open source software open?

It enables other programmers to use the code and make improvements and add in their own ideas. That way the software can improve. Good additions to it are kept in and then can become part of the next standard version of the software. It is a great way of improving software and it is good for programmers to learn more about programming.

Can 2 binary numbers have the same decimal value?

Two numbers that have the same decimal value will have the same binary value. Binary is simply a representation of a number in base 2, while decimal is base 10.

For example, consider the number 104 in base 10. In this system, we can break down each digit due to the distributive law.

104 = 1 * (10^2) + 0 * (10^1) + 4 * (10^0) = 100 + 0 + 4 = 104

To convert to base 2, we can find the largest power of two that is less than our base 10 number and work backwards from there, in this case we start at 2^6 or 64

2^6 = 64

104 - 64 = 40

2^5 = 32

40 - 32 = 8

2^3 = 8

8 - 8 = 0

so therefore:

104 = 1 * (2^6) + 1 * (2^5) + 0 * (2^4) + 1 * (2^3) + 0 * (2^2) + 0 * (2^1) + 0 * (2^0)

meaning that 104 base 10 is equal to 1101000 base 2.

Base Conversion program in c language?

#include void main(void) { char base_digits[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; int converted_number[64]; long int number_to_convert; int next_digit, base, index=0; /* get the number and base */ printf("Enter number and desired base: "); scanf("%ld %i", &number_to_convert, &base); /* convert to the indicated base */ while (number_to_convert != 0) { converted_number[index] = number_to_convert % base; number_to_convert = number_to_convert / base; ++index; } /* now print the result in reverse order */ --index; /* back up to last entry in the array */ printf("\n\nConverted Number = "); for( ; index>=0; index--) /* go backward through array */ { printf("%c", base_digits[converted_number[index]]); } printf("\n"); }

Polynomial multiplication in link list using c language?

#include

#include

struct polynode

{

float coeff;

int exp;

struct polynode *link;

};

void poly_append(struct polynode **,float,int);

void display_poly(struct polynode *);

void poly_multiply(struct polynode *, struct polynode *, struct polynode **);

void padd(float, int, struct polynode **);

main()

{

struct polynode *first, *second, *mult;

int i,coeff,exp,high;

first = second = mult = NULL;

printf("Enter the highest power of polynomial 1: \n");

scanf("%d",&high);

for(i=high;i>0;i--)

{

printf("Enter value for coeff for X^%d : ",i);

scanf("%d",&coeff);

poly_append(&first, coeff,i);

}

printf("\nEnter the highest power of polynomial 2: \n");

scanf("%d",&high);

for(i=high;i>0;i--)

{

printf("Enter value for coeff for X^%d : ",i);

scanf("%d",&coeff);

poly_append(&second, coeff,i);

}

printf("\n\n");

display_poly(&first);

printf("\n");

display_poly(second);

printf("\n");

for(i=1;i<=79;i++)

printf("-");

poly_multiply(first, second, &mult);

printf("\n");

display_poly(mult);

}

/* adds a term to a polynomial */

poly_append(struct polynode **q, float x, int y)

{

struct polynode *temp;

temp = *q;

/* create a new node if the list is empty */

if(*q NULL ) )

{

r = malloc ( sizeof ( struct polynode ) );

r -> coeff = c;

r -> exp = e;

r -> link = temp -> link;

temp -> link = r;

return;

}

temp = temp -> link; /* go to next node */

}

r -> link = NULL;

temp -> link = r;

}

}

Wap to sorting the element of the array?

void main()

{

int i,j,temp1,temp2;

int arr[8]={5,3,0,2,12,1,33,2};

int *ptr;

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

{ for(j=0;j<7-i;j++) {

if(*(arr+j)>*(arr+j+1))

{ ptr=arr+j;

temp1=*ptr++;

temp2=*ptr;

*ptr--=temp1;

*ptr=temp2;

clrscr();

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

printf(" %d",arr[i]);

getch(); }

Write your own printf and scanf functions?

just include #define next to #include

or
/*just follow the pattern below*/ example:






#include
#include
#define pf printf
#define sf scanf
void main
{
int number

pf("Enter a value:");
sf("%i",&number);

getch();
}

How would an interpreter react to a syntax error?

Each individual interpreter is free to react however the creators see fit. Typically they will stop executing and display a descriptive message to the user.

Some will make a "best guess" at what it thinks the programmer was trying to write, though this approach tends to be more frustrating than useful.

What does the design of decision support depend upon?

Decision support depends on how structured a particular problem that needs solving is.