answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How do you make the symbol .. a treble clef on word using a standard computer keyboard?

~.♥♥♥♥♥♥

~♥♥♥"~'♥♥

♥♥♥"♥♥.

♥♥♥.♥♥*

♥♥..♥♥♥.

♥♥.♥♥♥.

♥♥~♥♥♥♥♥

~♥♥♥♥♥♥♥♥

~♥♥♥♥♥♥♥

~.♥♥♥♥♥♥.

♥♥♥♥♥♥♥.

.♥♥♥♥♥♥♥.

~♥♥♥♥♥♥"`♥.

♥♥♥♥♥*~♥♥

~♥♥♥♥♥~♥♥.♥♥.

♥♥♥♥♥♥♥♥♥♥♥♥♥♥.

♥♥♥♥~.♥♥♥♥♥♥♥♥♥♥♥♥.

♥♥♥♥♥♥*~♥♥♥♥♥♥♥.

♥♥♥~'♥♥"...♥♥~♥♥♥♥♥.

♥♥♥♥♥~*♥♥♥♥♥.

~♥♥♥~♥♥♥*.♥♥♥♥.

~'♥♥♥♥♥♥♥♥♥♥~:♥♥

~♥♥♥♥~♥♥~♥♥"

~♥♥*♥♥♥♥♥♥♥♥♥"

````""...♥♥

~♥♥♥

..~♥♥♥

♥♥♥♥♥♥♥♥♥

~♥♥♥♥♥♥♥♥~♥♥♥

~♥♥♥♥♥♥♥♥~♥♥

♥♥♥♥♥".♥♥

~"*♥♥♥♥♥*"

i don't know if that's the only way but its cool

Why is error called bug?

Errors are called bugs because Admiral Grace Hopper was once diagnosing a problem with a faulty computer and found an infamous dead moth inside the machine. It was determined that the moth had shorted out the circuitry thus the system's failure was attributed to a "bug in the system". The process of locating and removing bugs then became known as "debugging". The term "bug" is used to metaphorically describe systematic failures in general and is synonymous with "gremlins".

How do you write a program that generates three random numbers and prints the largest?

For this you need two variables, a and b. Generate the first number and assign it to a. Generate the second and assign it to b. If b is greater than a, assign b to a. Generate the third number and assign it to b. If b is greater than a, assign b to a. Print a.

A better method is to use the following function to determine the largest of any two values:

int max (int x, int y) { return x>y ? x : y; }

Once you know the largest of any two values you can easily determine the largest of any three values with a nested call:

int max_of_three (int a, int b, int c) { return max (max (a, b), c)); }

Note that we determine the largest of a and b first and then pass that value to a second call along with c, thus establishing the largest of all three.

To determine the largest of n values, store the numbers in an array and pass the array and its length to this function:

int max_of_n (int a[], size_t n) {

int m = a[0]; // store first value

while (--n) if (a[n]>m) m=a[n]; // update m whenever a[n] is greater

return m;

}

What is called when a data value appears directly in a statement?

It can be called hard coding the data. For many things in computing it should be avoided if possible in favour of using variables or defined constants, in order to give more flexibility and structure to a program.

Is ms access is DBMS?

No. MS Access is an application which uses a (sort of) DBMS. The power of the DBMS it uses is limited which is why it is not used for larger applications.

Why do computers use zeros and ones?

They dont have to use zeros and ones. It can be anything that are oposite.

What is the full form of OPERAND?

The following full form is pedmas:

p = parenthesese = exponentsm = multiplicationd = divisiona = additions = subtraction

How to write a c program to convert analog to digital signals using a sound port?

You cannot. Before we explain why, let's first examine how we actually record audio, then we'll look at how we convert it to the digital domain.

In order to record a sound wave, we first have to capture the vibrations made by the sound. Before the advent of electrical recording, this was achieved using a horn. This transmitted the sound to a moving stylus which vibrated in sympathy with the sound. When the vibrating stylus was brought into contact with a rotating cylinder, it etched a groove in the surface. As well as rotating, the cylinder also moved horizontally, thus the groove spiralled across the outer face of the cylinder. Once recorded, the same device could be used for playback; the rotating cylinder vibrated the stylus and those vibrations were amplified by the horn, reproducing the original sound.

With electrical recording we use a microphone instead of a horn. A microphone is simply a loudspeaker working in reverse. The microphone diaphragm vibrates in sympathy with the sound wave, which in turn moves a coil back and forth within a magnetic field, thus creating an electrical signal which is analogous to the sound wave. If we pass that same signal to a loudspeaker, we can recreate the original sound, just as we did with the horn and stylus.

The moving coil has a limited range of movement within the magnetic field. If we say that -1 represents the full extent inwards and +1 the full extent outwards, it follows that 0 is the transition point between the positive and negative phases of the sound wave. 0 is also the resting point of the coil when there is no sound at all. Although we are imagining numbers at this point, they are completely imaginary; we are still in the analog realm not the digital domain.

In order to convert the electrical signal for the digital domain, we need to take a snapshot of the coil's position at a given moment in time. For accurate reproduction we'd need an infinite number of snapshots, however the human ear is quite forgiving and we find that 44,100 snapshots per second (44.1 KHz) is sufficient to reproduce sound with high-fidelity. This is because the human ear has a frequency range of 20 Hz to 20 KHz, and we need at least twice as many samples per second to capture both the positive and negative phases of 20 KHz sound. CD-quality audio is 44.1 KHz for that reason. Once recorded we cannot improve the fidelity -- we can only lose fidelity -- however by using a higher frequency sampling rate, such as 96 KHz, we have sufficient fidelity to cater for all forms of mainstream digital media (such as BluRay). Fidelity is the physical difference between the original sound and the recorded playback of that same sound. At 44.1 KHz, most people won't notice any difference at all even though the physical difference is quite substantially different.

As well as the sample rate we need to consider how we store each sample. Given that the coil moves within a working range of -1 and +1, the position of the coil at any given moment can be converted to a real number within that range. However, although the range is relatively small, the set of real numbers within that range is as infinite as the set of all numbers; it's what we call a "small infinity" because it's an infinite set within a much larger set of infinities.

The only way to digitally represent an infinite set of values is with an infinite number of digits or bits. That's clearly impossible, so we need to limit our range in some way. With 16-bit recording we have 65,536 unique values available (all integers in the range -32,768 to +32, 767), thus we must scale our set of real numbers to fit within this range, rounding up or down to the nearest integer. Each additional bit doubles the range of integers thus the fidelity of 24-bit is 2^8 times that of 16-bit.

Now -- to answer the actual question -- converting analog audio to digital audio cannot be achieved with software of any kind, it can only be achieved with hardware. This stands to reason because software can only operate upon digital information stored in the computer's memory which means the conversion has to happen before the software "sees" that information; it cannot process what it cannot "see". But hardware can easily convert an analog electrical signal into a digital one, it's simply a matter of designing the appropriate circuitry.

To convert audio signals from analogue to digital we need a device known as an analogue to digital converter or ADC. The ADC takes a bandwidth-limited analog input (anti-aliased to eliminate all frequencies greater than half the sample rate) and produces a digital output. Once converted to a digital form, we can easily store it in a computer's memory. The conversion itself is trivially simplistic and is really no different to the way we would manually scale a real number in the range -1 and +1 to an integer in the range -32,768 and +32,768.

We can adjust the conversion insofar as we can amplify or attenuate the ADC input signal (the input gain), the sampling frequency and the bit-depth. But while we can perform these adjustments with software (communicating via the hardware's device driver), the conversion process itself is handled entirely by the hardware.

The reverse process is achieved with another piece of hardware known as a digital to analog converter or DAC, which converts the digital values back to electrical signals of the appropriate amplitude.

Note that not all sound originates in the analog world but must be converted to the analog world in order for us to hear it. For instance, computer-generated sound is entirely digital but until we pass it through a DAC (and subsequently through an amplifier and speaker) we cannot hear what it sounds like.

How many MB is 5205488 Bytes?

Depending on context a megabyte (MB) can be defined as:

a) 1,048,576 bytes (10242) for computer memory

b) 1,000,000 bytes for computer storage. The IEEE Standards Board has determined that "Mega will mean 1,000,000"

c) In rare cases it is used to mean 1000×1024 (1,024,000) bytes.

So depending on context, 5205488 Bytes can equate to:

a) 4.96 MB

b) 5.20 MB

c) 5.08 MB

What is the difference between global variable and extern variable?

Global variables are non-local variables. That is, variables that are not defined in a function or class. They are globally accessible to all code in the same translation unit. External variables are global variables that have external linkage; they are accessible across translation units.

What is the purpose of networking a home?

There are many, not just one. If you are specifically are talking about computer networks the answer is many. since you do anything from simple things like sharing a printer to a complex things such as running a web-based collage session from your basement. so every question comes down to one simple question in one or the other way around which is " What are you trying to achieve out of your home networking project ? ".

Why digital signals are more noise free than analog signals?

Digital signals are "forced" to be either 1 or 0, whereas analog signals are not. This means that a signal of 0.8 will be pushed to 1 in a digital signal and will remain 0.8 in an analog signal, and 0.2 will be 0 digital and 0.2 analog. This means that in order to overwhelm a digital signal the noise must do much more work to be effective. digital signal have only two states analog have infinite states therefore more susceptible to noise

Why is capability to relocate processes desirable?

A process may occupy different partitions which means different absolute memory locations during execution (from swapping)

Compaction will also cause a program to occupy a different partition which means different absolute memory locations

How do you write a program to find out the square and cube of first ten natural numbers in gw basic?

First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.

What is interlock in PLC programming?

A series of conditions must be met to affect an output condition.