answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is encapsulation in c?

Assume you were asking as in C#, not C. Because C is not an OO language, thus if there is encapsulation, it would be different.

The encapsulation in any OO language is to hide the information of data and the implementation detail of a method.

For example, you have a bank account as a private data member. Any one can ask you about the Balance of your bank account, e.g. GetDeposits(), an operation that is public. Wait, you now are richer, and you open 2 more bank accounts, the public still has the only accessing method GetDeposits(), to get your total deposits.

The encapsulation in this abstraction are:

1. The detail, the implementation of GetDeposits(), is not revealed to public.

2. The data member, 1 account or 3 accounts, no one got impact, and no one knows. (in fact, no one knows how many bank accounts you have!)

Computer topics for poster presentation?

give me a interesting topis for poster creation

for computer science students

What are advantages of multiprogramming?

Multiprogramming makes effifcient use of the CPU by overlapping the demands for the CPU and its I/O devices from various users. It attempts to increase CPU utilization by always having something for the CPU to execute.

What are the similarities between a process and a thread?

Thread and Process both do the same thing. ie. parallel jobs done on a CPU. The thread is under the process's control, ie. the programmer can control the thread regard to its priority, memory etc. I am not very sure about multi-threading and process-control under Windows. We have a process control system running on a 8086 based system. It is of Siemens make. It supports 64 threads which are called Tasks in their terminology. Initiation of task, suspending the task, readying the task etc is under the control the program, ie user software. In another computer Data General's M-600, we had multiple processes (max 64), each having a logical address space of 64 kilo bytes. Under each process we can have multiple tasks (I think max 32 tasks). The task control block is in the program's memory space. Intertask communication is pretty simple here. Sharing memory between tasks is simple as the entire memory of the process is under the control of the process. I have used a muti-tasking program under windows. One task continuously communicates with a groupp of microprocessor based controlers over RS-485, and another task processes the read data and does display, storage etc. The program was written in VC++(6.0) . Here the sharing of memory is easy as the entire memory of the process is shared between the tasks(threads). But VB uses something called compartmental multi-threading, meaning each thread has its own compartment of resources.

What school did Orville wright go to?

Orville Wright attended Central High School in Dayton, OH, but never graduated. Wright was born in Dayton on August 19, 1871.

Conclusion for artificial intelligence?

artificial intelligence is a branch of science which deals with the helping of machines find solutions to complex problems...

or...

the study ofand design of intelligent agent and the engineering of making intelligent machines..

What is non perspective drawings?

A Perspective Image is an image that looks realistic and tends to be almost 3D, there is at least one vanishing point. Think of an image of a road. Notice how the road is large where we stand but gradually gets smaller until we can't see it at all? That's where the vanishing point is.

A Non-perspective image is an image that lacks in a vanishing point and is almost flat.

What is siganl bandwidth?

Scroll down to related links and look at "Bandwidth and geometric mean".

How antropometrics related to architectural design?

if you're talking about "anthropometrics"....it is the ergonomics behind the building and the spaces within. the anthopometric data of a human being will help you decide the height of counters and width of doors etc. please refer nuferts or time saver's standards if you have it in you institute library. it may help. else there's always google :)

What are some examples of program music?

Music written to tell a story [APEX]
music writtin to tell a story

If you transfer a hacked Pokemon from Pokemon Ruby Sapphire Emerald FireRed LeafGreen to your Diamond Pearl Platinum on the DS will it corrupt your game in any way?

I don't know, but I wouldn't risk it. I got a leafgreen-same problem. I can't play any other games, but my games are bad anyway. last time i did that i corrupted.

What is the difference between micro operation and macro operation?

Micro operation is the level 2 operation, it is excute directly from hardware. Mainly used in provide macro instruction.

Macro operation is the level more than 2 (3,4) operation, depend on your CPU structure. Sometime, we call its assembly operation. It is excute by micro operation.

How do you uninstall Disney's Tarzan Activity Center from Windows XP when the disk is lost?

After hours of complete frustration, I finally found a number to Disney Interactive Studios and was given this to remove program from comp and it worked! My Computer

C Drive

Program Files

Disney Interactive

Tarzan Activity Center

right click for Menu

then click delete

ok ****Then immediately install program back onto computer and then uninstall using add/remove in control panel (this removes any other folders that was installed with program in the beginning)!****

Operation of XOR gate?

An XOR (exclusive OR gate) has two inputs and one output. If only one of the inputs is at level 1, then the output is 1 otherwise the output is 0. The truth table looks like this: A B Out

0 0 0

0 1 1

1 0 1

1 1 0 Exclusive OR represents in logic what "or" means in English; for example, if asked if you want tea or coffee it's usually meant that you can have one or the other - not both.

How do you apply artificial intelligence to a business?

Artificial intelligence represents a new way of thinking about software Most business—especially on the smaller end of the scale—are not actively developing their own artificial intelligence algorithms. Instead, they are adopting products that have AI features built in. Even so, there must be an understanding of how AI differs from previous software applications. Rather than operating on inputs in a deterministic way to produce results, AI programs take in large amounts of data and work in a probabilistic manner. This means that there is a higher degree of uncertainty in the results. AI may produce unique and disruptive insights, but those insights require some amount of validation.

What is the differnce between timer and counter?

A counter accumulates an unknown quantity of external events over a known interval of time.

The measurement of interest is typically frequency when the events are periodic. If the events are random, the measurement involves event density over time.

A timer accumulates a series events of a known interval over an interval that is being measured.

The measurement of interest is typically the time elapsed between two events. If the start and stop events recur periodically, multiple measurements can be made and averaged, allowing for increased resolution.

Counter/timers in MPU's are typically just counters that count external events in counter mode and processor cycles in timer mode.

Difference between BIOS and CMOS?

BIOS refers to (Basic Input Output System) it is responsible for booting of your system while DOS(Disk Operating System) is an operating system that user uses by entering commands in command prompt(to open in windows press start+r).

Where is the throttle position sensor located on a 1994 buick skylark?

it is located behind the ignition control module which is where your coil packs are mounted and your spark plug wires are connected. u cant see it u must remove the base plate and it is mounted to it. sticks through the engine block has o-ring.

Difference Artificial intelligence Artificial neural network?

The expression "man-made consciousness" traces all the way back to the mid-1950s, when mathematician John McCarthy, broadly perceived as the dad of AI, utilized it to portray machines that do things individuals may call shrewd. He and Marvin Minsky, whose work was similarly as compelling in the AI field, coordinated the Dartmouth Summer Research Project on Artificial Intelligence in 1956. A couple of years after the fact, with McCarthy on the personnel, MIT established its Artificial Intelligence Project, later the AI Lab. It converged with the Laboratory for Computer Science (LCS) in 2003 and was renamed the Computer Science and Artificial Intelligence Laboratory, or CSAIL.

Presently a pervasive piece of current culture, AI alludes to any machine that can reproduce human intellectual abilities, for example, critical thinking. Throughout the second 50% of the twentieth century, AI arose as an incredible AI approach that permits PCs to, as the name infers, gain from input information without being expressly customized. One procedure utilized in AI is a neural organization, which draws motivation from the science of the mind, transferring data between layers of supposed fake neurons. The absolute first counterfeit neural organization was made by Minsky as an alumni understudy in 1951 (see "Learning Machine, 1951"), yet the methodology was restricted from the outset, and even Minsky himself before long turned his concentration to different methodologies for making savvy machines. As of late, neural organizations have made a rebound, especially for a type of AI called profound realizing, which can utilize exceptionally huge, complex neural organizations.

socialprachar

Why are artificial intelligence systems valuable?

To Create Expert Systems: The systems which exhibit intelligent behavior, learn, demonstrate, explain, and advice its users.

To Implement Human Intelligence in Machines: Creating systems that understand, think, learn, and behave like humans.

The goal of AI is to develop computers that can simulate the ability to think, as well as see, hear, walk, talk, and feel.

Who is starscream?

is a bad guy transformer and in the cartoon he does really a double agent sometimes but he is a bad decicorn

Ok, so I don't know who wrote this, but most of it is incorrect. Yes Starscream us a transformer from the planet Cybertron. And yes, Starscream is a decepticon. Double agent?? Not so much. Starscream makes no secret of his ambition to overthrow Megatron as leader of the Decepticons. Starscream is actually much smarter then your run of the mill Decepticon and is ruthless and cruel. He considers himself vastly superior to other Decepticons, and looks down on Megatron for being antiquated in his military strategy and tactics. Starscream believes that the Decepticons should rely more on guile and speed rather than brute destructive force to defeat the Autobots. Starscream can transform into a F-15 and serves as Air Commander for the Decepticons. His rank in the Decepticon is a 9, he serves as second in command to Megatron. He also has a great quote, which is true of his personallity if you watch the show....

"Conquest is made of the ashes of one's enemies"

Explain the diference between batch processing and real-time processing?

IN REAL TIME SYSTEM THE OUTPUT HAS COME IN QUICK RESPONSE. WHEN THE USER ENTER HIS QUERY THEN THE OUTPUT COMES IN FEW SECONDS. AND IN BATCH PROCESSING SYSTEM THE THE SYSTEM IS NOT DESIGNED FOR QUICK RESPONSE AND THE USER ENTERS HIS QUERY DAY BY DAY IN A PUNCH CARD AND THE RESULT WILL BE SHOWN TO HIM BY SYSTEM IN FEW DAYS DEPENDING UPON THE QUERY.

What does macro mean in photography?

Macro photography means taking real close up photographs of your subject like flowers or even baby's toes to capture a lot of detail in your photos.

What is the similarity between an identifier and a variable?

Answer:

- identifier is the name like a, b, c, .... which is used to reference a memory location in a program. +

-

variable is the actual memory location which can hold values.

so 'a' is an identifier to a variable which is memory location located somewhere in memory.

Answer:

A Variable in Java is something that holds a particular value in a class. For example:

public class A { private String name = ""; ......

} In the above declaration name is a variable. It would hold the data of type String.

An Identifier is nothing but the name that we give for our variables, classes, methods etc. It is nothing but the name with which we identify an entity in Java. For example here A is the identifier for the class, name is the identifier for the variable etc.