answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Should I use MLA or APA?

Depends on a couple things:

1.Professors preference, ask him/her

2.Subject, generally English/Lit is MLA, and science and social science are APA.

Shell program to find out whether given number is Avogadro or not?

echo "Enter A Number :"

read n

r=n

s=0

rem=0

while [ $n -gt 0 ]

do

rem=$(($n%10))

s=$(($s+$rem*$rem*$rem))

n=$(($n/10))

done

if [ $r -eq $s ]

then

echo "The Number is Avogadro"

else

echo "The Number is Not Avogadro"

fi

What is fitness function in GA algorithm?

In order to understand the fitness function, you first have to understand that a genetic algorithm is one which changes over time (it evolves). In nature we have things like predators and harsh environments which eliminate unwanted specimens of animals (a slow zebra will get eaten by a lion). We need to simulate this behavior when programming genetic algorithms.

The fitness function basically determines which possible solutions get passed on to multiply and mutate into the next generation of solutions. This is usually done by analyzing the "genes," which hold some data about a particular solution to the problem you are trying to solve. The fitness function will look at the genes and make some qualitative assessment, returning a fitness value for that solution. The rest of the genetic algorithm will discard any solutions with a "poor" fitness value and accept any with a "good" fitness value.

In short: the goal of a fitness function is to provide a meaningful, measurable, and comparable value given a set of genes.

What are API calls used for?

"API calls" have no specific question; the term APIsimply means application programming interface, and to call an API simply means to invoke a function (or subroutine) from a computer program.

Each API call is different in how it is called (e.g. does it require any parameters, and of so, which), when (e.g. can it be called at any time and under all circumstances), what it does and what it returns to the caller.

API functions serving closely related purposes are often grouped together into an API.

Take this hypothetical example: One API provides services for rounding numbers: one function of this API rounds numbers to the nearest whole number, another function that belongs to the same API rounds numbers to the nearest hundredth.

The purpose of API is unlimited. Examples of API include API to allocate, manage and return memory from a heap, API to create, manage and delete files and folders on a hard disk, API to get and set the current time, API to draw lines and other geometric shapes, etc, etc.

What does the term Legacy system mean in the computer world?

A "legacy" system is one that is either outdated for most practical purposes, or one that includes older forms of technology. A "legacy-free" PC is one that does not include older ports that would be necessary to support much older equipment, such as parallel ports, ISA slots, serial ports, PS/2 ports, and sometimes even VGA.

Assembly language programming on mergesort?

try making yourself..hope it will be useful ofr you!

What does acronym SETI stand for?

The Search for Extra-Terrestrial Intelligence (SETI) has been going on for many years, primarily with the Arecibo Radio Telescope in Arecibo, Puerto Rico, which began its participation in the programme back in 1999. The dish is 1000 feet across (305 metres) and is the largest single aperture telescope in the world. It took three and a half years to build, beginning in June 1960.

What is store word in MIPS instruction?

store word = sw in MIPS

We use it in the following format

sw regs, addr

It stores the word in register regs to address addr.

The diffinition of trademark?

a trademark is A name, symbol, or other device identifying a product, officially registered and legally restricted to the use of the owner or manufacturer. A distinctive characteristic by which a person or thing comes to be known: the shuffle and snicker that became the comedian's trademark. To label (a product) with proprietary identification.

What is a user-defined region?

A user-defined region is one that is classified by use.

eg. hydro-electricity region

Why won't itunes recognize my ipod it says corrupt file and will not turn on and when i plug it in it is not recognized what should i do?

try re-installing itunes. If that doesn't work, try another iPhone on your system, or your iPhone on another system with itunes.. if you determine the phone is the problem, then you might need to reset your iphone completely. I recommend you contact Apple's iPhone support if you want to avoid doing a full iPhone restore.

What does alumna mean in English?

aluma means a student (a girl student if it a boy/man it would me alumno)

Vertical columns of elements on the periodic table are called?

false

The vertical columns are known as groups whereas the horizontal rows are known as periods.

What programming language is maple written in?

Maple is mostly written in Maple, but the core is in C ( http://www.nationmaster.com/encyclopedia/Maple-(software) )

Why are girls so compilicated?

Because a girl's mind have to deal with a lot more than boys.

What is a third normal form?

Third normal form is used to describe a database that has been normalized. Normalization is a process of removing redundant data. A third normal form is a database that has no transitive dependencies and has all the characteristics of the second normal form.

What is video segmentation?

To support object-oriented video compression technology, like

MPEG-4 standard (Core, Main Profile)

„ To support content-based video processing application

Advanced techniques using spatio-temporal information

† Accuracy is good enough, but computational complexity is high

„ Background registration

† Computational complexity is relatively low

† But some constraints are existed : No camera motion, Preregistered background image

When was the first computer established?

The first computer on record was in the year 1822. This computer was the first automatic computing machine and was capable of computing several sets of numbers.

What is Ada Byron known for?

She is credited as being the first computer programmer, having written the first algorithm intended for processing by a machine.

What is the difference between the corporate and the retail editions of Windows xp?

The 'Corporate' edition is also known as 'Volume Licensed'. These editions are sold directly to an organisation via a direct relationship with Microsoft.

'Volume Licensed' editions do not need activation, and use a single license key for the entire organisation. 'Volume Licensed' editions are also only sold as upgrade licenses.