answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Multi-site case study?

Its a study done or involving more than one site, for example, five schools.

Functions of calcuim?

in animals -- build bones. It is in many useful building materials. Concrete, limestone in many forms,

Difference between Internal hashing n external hashing?

Internal hashing mainly used for internal file, it is particularly an array of records. External hashing used for file disk

What is a type as a term that relates to programming?

Computer programs store and handle data; this data can come in different types. For example, some languages define numeric types, which can further be subdivided into integers and floating-point numbers (i.e. numbers that don't accept decimals, and numbers that do), dates, boolean or logical data (can only contain the values "true" or "false"), strings (to store text or other symbols), and others.

Classes are a way to define additional (user-defined) types. Such user-defined types usually consist of several other data types. For example, you might decide that to store information about a point in space, you need three coordinates - 3 floating-point numbers, one for each of the 3 coordinates.

Does xml document support both human readable and machine readable formats?

No. Machines do not understand XML any more than they understand the works of Shakespeare. XML documents must be interpreted by a machine-code program that understands the meaning of the XML structure.

What Are The Differences Between Java And Python Variables Declaration?

You cannot declare a variable in Python without assigning some value to it. This is simply because a variable's type is inferred from the type of value that you assign to it.

a = "hello world" # a is a string

b = 42 # b is an integer

c = 3.14 # c is a float

d = [4, 8, 15, 16, 23, 42] # d is an integer array

In Java, all variable declarations must explicitly include a type even when declared with an initial value. The initial value, when given, must be of the same type or of a type that is covariant with the variable's type.

String a = "hello world";

int b = 42;

double c = 3.14

int[] d = {4, 8, 15, 16, 23, 42}

Note that local variables in Java that are declared but not assigned a value are considered "uninitialised". You must assign a value to all local variables before using them. Instance variables (members of a class) are always initialised. That is; numeric types have an initial value of zero, Boolean types are false and object references are null.

What is the difference between high level language and low level language?

A programming language that is machine-independent is called a "high-level" language - this includes Java, C++, Python, etc.

A programming language that is machine-dependent is called a "low-level" language. For PCs, this usually includes assembly, binary code or some proprietary languages on embedded devices.

What caused the latest revolution in management and decision support process caused by the implementation of the computer systems?

The increase in the use of computers by managers stemmed from the availability of personal computers and the introduction of easy‑to‑use software.

How do i do a system recovery on an hp pavilion xt963?

You have to have the system recovery cds hopefully you made them when you first got your computer. put the disk labled number 1 in the CD ROM drive restart your computer and follow the instructions.

What button do you use to show you most of the programs the computer has?

Go to the Start Menu and open Control Panel. Then click on "Add or Remove Programs". It will take a couple minutes to formulate a list of all programs installed on your computer.

What is the algorithm for chess?

Algebraic chess notation is the most widely used form of recording and expressing chess moves. For example: 1.e4 e5 2.f4 exf4 3.Nf3 d4...

N: Knight, K: King, Q: Queen, B: Bishop, R: Rook. Then there are the files A, B, C, D, E, F, G, H, hence a a pawn moving four squares on the e-file would e4. A pawn moving on the a-file two squares would be annotated as a2.

Descriptive chess notation is the less used format of recording and expressing moves, since it is less compact and more difficult to comprehend. At one time it was widely used, but was defeated by the algebraic system.

Example: 1. P-K4 PK4 Where the P stands for pawn and K for king,hence it can be translated as "pawn moves in front of king four squares. The last number in the annotation stands for the number of moves the pawn in front of the king moved.

This was the more complicated version and failed to catch on.

What is the computer generated information that is displayed?

The computer-generated information that is displayed is usually referred to as "output".

What converts high level language to machine language?

Converting machine language to a high-level language is very difficult. It is not possible to convert machine language back to the original high-level source code because there are an infinite number of source code files that can produce any given machine language output. For example, machine language uses memory addresses or stack locations to store variables, so all variable names used in the source code are lost and cannot be regenerated.

There are some reverse compiler tools that can produce a probable high level language file from machine language. And some machine code file formats store information about source code for debugging or tracing, and when available, that information can be very useful to reverse-compile machine code.

It is also possible to generate an assembly language file that is close to the machine code, and although that is not high-level it is more human readable.

What were computers used for in the metal forming machines tools sector?

Trends in technology in the metal forming machine tools sector were closely tied to computer and electronic innovations, including those for design and control.

What is the definition and field for a database f?

Collection of inter related data is called table.Collection of tables is called database.Field of database is its attribute.

Why won't my keyboard type correctly e.g. when you type i you get i8 PS I'm using my virtual keyboard?

If you type 'i' and get 'i8' then you've accidently touched two keys because the '8' key is directly above the 'i' key on a QWERTY keyboard.

Your computer has 1.85 gigahertz and 512 of RAM how much memory do you have in gigabytes?

This means the processor runs at a frequency of 1.85 gigahertz. In other words (ie.) the processor's instruction counter increments 1.85 billion times per second.

If we assume that this is measured in megabytes (ie. 512 MB of RAM) then the computer has 0.5 gigabytes of memory. The memory of a computer is the amount of RAM it has. Notice that the amount memory is normally a multiple of two. A gigabyte of RAM ( 1 GB ) amounts to 1024 megabytes (1024 MB) of memory.

How can we write program in c on secant method explain with example?

#include<iostream>

#include<cmath>

#include<fstream>

using namespace std;

double f(double x);

int main()

{

double dX0, dX1, dX2, dInterations = 0, dTolerance;

cout << "What is the first root guess? ";

cin >> dX0;

cout << "What is the second root guess";

cin >> dX1;

do {

dX2 = dX1 - ((f(dX1) * (dX1 -dX0)) / (f(dX1) - f(dX0)));

dX0 = dX1;

dX1 = dX2;

dTolerance = fabs(dX2 - dX1);

dInterations++;

}

while (dInterations <= 100 dTolerance >= .000001);

cout << "One of the roots is " << dX2 << endl;

}

double f(double x)

{

double dReturn;

dReturn = (3 * x * x) + (2 * x) -2;

return dReturn;

}