answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

How do you work inductor in furnes?

As magnetic field is changed sinusoidally the Foucault currents induced in the metallic body heats the body and melts it. This is the principle of induction furnace


What makes electric charge to flow?

When we bring a positively charged body towards a negatively charged body the negatively charged particles in the negatively charged body move towards the positively charged particles in the other body i.e an electric charge moves when we bring two bodies of differently charged bodies or the same charges(they repel each other in this case)


Why it is necessary to avoid infinite loop in program design?

It is not necessary to avoid infinite loops. You are perhaps confusing infinite loops with endless loops which are to be avoided at all costs. An endless loop is an infinite loop that has no reachable exit condition; the loop will iterate until we forcibly terminate the program. We use the the term infinite loop in the sense that it is impossible to measure or calculate when the exit point will be hit. the following are all examples of infinite loops in their simplest form: for (;;) { // ... } while (true) { // ... } do while (true) { // ... } endless: // ... goto endless; The conditional expressions in each of these loops can never be false thus we cannot easily determine when these loops will exit. We typically use infinite loops when there are many exit conditions to consider and it is either impractical or inefficient to evaluate all of those conditions via the controlling expression alone. We take it as read the exit conditions are contained within the body of the loop. If the body of the loop has no reachable exit condition then it becomes an endless loop. It is the programmer's responsibility to ensure that all infinite loops can exit at some point.


How do you break the infinite loop program in turbo c plus plus without break key?

In short, you don't. By definition, an infinite loop is one that has no exit condition. For example: while( 1 ); When execution reaches this line, the program will get no further. It will continually execute this same line of code because the only way for this loop to exit is when the literal constant 1 becomes the literal constant 0 -- which would clearly be impossible. By the same token, the following lines are also infinite loops: do while( 1 ); for(;;); Infinite loops of this kind are completely useless in production code. Apart from the fact they do nothing remotely useful, an infinite loop renders the program completely invalid. And yet we hear the term infinite loop being used in code all the time. The truth is that while we do use the term infinite loop, it is not strictly infinite. What we really mean is that although the loop statement needn't have an exit condition, the body of the loop does! By way of an example, consider the following infinite loop: while( 1 ) { if( !rand() ) break; } Here, the loop statement is clearly infinite, but the body contains the all-important exit condition. In this case, the loop continually produces random numbers in the range 0 to 32767. If the number is zero, then control passes to the break statement at which point the loop ends and execution continues at the statement following the closing brace of the loop. Thus on every loop there's a 1 in 32768 chance the loop will end. There's a remote possibility the loop may never end however it's highly unlikely. Note that in its current form, the random numbers will produce the same sequence over an over and the loop will therefore execute the same number of times every time the program is run. But even if we seed the random numbers to produce a different sequence each time, the loop will exit after just a few seconds at most. The odds of never ever producing a zero are remote in the extreme. So that's the so-called infinite loop -- which is not really infinite after all. But to answer the question, we break out of an infinite loop by providing at least one exit condition within the body of the loop. If the program is to be run within an event-driven environment (such as Windows), we might periodically test the message queue to see if a specific key sequence is pending (such as ESC) and prompt the user to save the current state of the loop so that it can continue at a later date before gracefully exiting the loop. By the same token, we should also check for a program exit message (perhaps the user clicked the close window button, or even chose to shutdown Windows in the middle of the loop) and we must cater for those eventualities too. Ultimately, how you exit an infinite loop will depend entirely upon the purpose of the loop. There is no one-size-fits-all solution. But there must be at least one exit condition that must logically fire at some point in time. If not, the loop is truly infinite and will completely invalidate your program.


What is the two ways that a charged body can be discharged?

The two ways to charge a neutral body with static electricity is to dump a bunch of electrons onto it, thus making it negative, or attracting a bunch of electrons off of it, which will make it positive. There are several mechanisms that will allow us to do this. Just one example is to rub a balloon on your hair (if your hair is relatively dry) and you'll separate charges. This will cause the balloon to stick to your hair via the mechanism of static electricity.

Related Questions

how to charge a body by induction?

To charge a body by induction, bring a charged object near but not in contact with the body. This will cause the charges in the body to redistribute, leaving one side positively charged and the other negatively charged. Remove the charged object, and the body will remain charged due to the separation of charges induced by the presence of the charged object.


Why neutral bodies attract positively charged bodies?

no


How is an insulated conductor charged by the process of electroststic induction and what is the condition for maximum induction?

An insulated conductor can be charged by bringing a charged object near it, which causes the charges in the conductor to rearrange. To achieve maximum induction, the conductor must be grounded while the charged object is nearby. This allows charges to flow to or from the ground, enhancing the separation of charges and maximizing the induced charge on the conductor.


Is electrical a non contact force?

Static electricity is a non contact force because : Whether an object is charged by conduction or induction or even by friction they acquire a charge and the objects acquire opposite charge in induction and friction but same charge in conduction. So when the charged body is brought near an uncharged body if they have opposite charge they will be attracted towards the charged body due to the movement of ionic particles.


How a neutral body can be charged negatively by induction?

A neutral body can be charged negatively by induction when it is brought close to a negatively charged object. The negatively charged object repels electrons within the neutral body, causing the electrons to move towards the opposite side, leaving that side with a net positive charge. This results in the neutral body being negatively charged on one side.


Can a charged body attract a neutral conductor ball hanging on an isolating wire?

Yes, a charged body can attract a neutral conductor ball hanging on an insulating wire. When a charged body is brought close to the neutral conductor ball, it induces opposite charges within the ball through the process of electrostatic induction, causing it to be attracted towards the charged body.


When is a body charged negatively?

A body is charged negatively when it gains an excess of electrons, causing it to have an overall negative charge. This can happen through processes like friction, induction, or contact with a negatively charged object.


The difference between induction and conduction?

conduction is when the electricity is flowing because something is touching it, induction is when elctricity is flowing , but there is nothing touching it In cas of conduction the transfer of electrons between the conductor and charged body takes place whereas in case of induction no such transfer takes place, only the realignment of electrons in the induced body occurs.


What are the two methods of charging a body?

The two methods of charging a body are charging by friction (rubbing two objects together to transfer electrons) and charging by induction (bringing a charged object near a neutral object, causing a separation of charges).


How do you discuss ways of charging a body?

To discuss ways of charging a body, you can explore methods such as friction, conduction, and induction. Friction involves rubbing two materials together to transfer electrons, while conduction involves direct contact between a charged object and a neutral one. Induction charges a body without direct contact by bringing a charged object close, causing a redistribution of charges. Each method has its applications and can be demonstrated through simple experiments or theoretical explanations.


What will happen if during induction the ground connection was removed first before the charging body?

During induction, if the ground connection was removed first before the charging body, the electrons on the electroscope will be stranded. This causes a negative charge on the object.


Is electrostatic force a contact or non-contact force?

Static electricity is a non contact force because : Whether an object is charged by conduction or induction or even by friction they acquire a charge and the objects acquire opposite charge in induction and friction but same charge in conduction. So when the charged body is brought near an uncharged body if they have opposite charge they will be attracted towards the charged body due to the movement of ionic particles.