A switch can either be on or off. Thus a switch is the most primitive method of representing a single binary digit (a bit). A single switch only has two possible states which we denote with the symbols 0 and 1. However an array of two switches has 4 possible states (00, 01, 10 and 11). These individual states are binary representations thus we can represent the state of an array of switches of any length using binary notation. In other words, we can use switches to represent digits. Thus any data that can be converted to some numerical representation can be represented digitally using nothing more than switches.
However, switches are just one way of representing binary digits in a computer. A computer's working memory (RAM) typically consists of a huge array of capacitors, each of which is paired with a transistor. The transistor is used to switch the state of the capacitor, either by filling it with an electric charge or emptying it of charge. Thus it acts very much like a switch, it is either on or off, a 1 or 0.
Any medium that can be used to differentiate between any two distinct states can be used to store binary data. Bar codes are simply a series of black and white stripes and are therefore a means of representing binary data which can be "read" optically. Magnetic medium can either be positively charged or negatively charged to produce an analogous electrical signal (the exact same signal that was used to create the polarity in the first place). Optical medium (laser discs, CD-ROM, DVD, etc) can either be pitted or not pitted by a laser (creating "pits" and "lands") which can be detected by another laser. A piece of card can have a hole punched at a specific position, allowing a pin to pass through and complete a circuit, creating a 1 bit. If there is no hole, the circuit remains open, creating a 0 bit. These are just a few simple examples of the many different ways we can store and retrieve binary data.
All programming languages need to be converted to machine code. Machine code is the native language of the machine; it is the only language understood by the machine. When we write programs in other languages they must be translated into machine code. To achieve that, we need to write a program to perform the translation for us.
For this we can either use an assembler, a compiler or an interpreter, all of which are machine code programs. Assemblers can only be used with assembly languages, which are low-level symbolic languages that translate near 1:1 with the machine code. The machine code can be saved and executed without further translation. However, assembly languages are not portable; each machine architecture has its own specific version of machine code and therefore requires its own specific assemblers to produce it. To port the code to another architecture you essentially have to re-write the entire source code. There are tools (pre-processors) that can help make the task easier but it's by no means a straightforward process.
[The reverse of assembling is disassembling, which converts machine code into a low-level language that is similar to assembly but is known as disassembly. However, since an assembler strips out all variable names and user comments, a disassembler cannot restore the original assembly language code. Indeed it is impossible to restore the original source code no matter what language was used. Disassembly is as good as it gets.]
All high-level languages are either compiled or interpreted or are both compiled and interpreted.
Compiled languages compile the entire source code into machine code, much like assembly language but with a higher level of abstraction between the source and the machine code. As with assembly languages, the machine code can be saved and executed without any further translation. Being more abstract, compiled languages are much easier to port to other architectures than assembly languages. However they must still be compiled separately upon each architecture. The most popular examples of compiled languages are C and C++.
Interpreted languages do not translate the entire source code, they step through the source code one statement at a time, converting each statement to machine code and executing it before moving onto the next statement. This has the advantage over compiled languages in that you do not have to wait for the entire program to compile before executing the program. A compiled language program can take several minutes to compile, whereas an interpreted language can be executed immediately. However, the need to interpret every statement before executing it incurs a performance penalty. With compiled languages, you only pay the cost during compilation; once compiled, you do not need the compiler. Interpreted languages cannot execute without the interpreter, but any machine that has a suitable interpreter can execute the same source code regardless of which machine architecture it was written on. The most popular interpreted language is BASIC since it is the language most programmers learn before moving onto other languages.
Languages that are both compiled and interpreted use a compiler to produce an intermediate source known as byte code. Byte code is not machine code, it still has to be interpreted, however the byte code "statements" are much simpler to interpret than an interpreted language's statements thus it performs much better. Also, unlike compiled languages, the compiled byte code is highly portable. The best example of such a language is Java which compiles to Java byte code suitable for interpretation by the Java virtual machine (JVM). Given that virtually all platforms provide a JVM implementation, it's no surprise that Java is by far the most popular application programming language in use today. However, it's lack of low-level features limits its usefulness in non-application fields such as driver software, operating system kernels and embedded systems software. Its performance and memory consumption also leaves a lot to be desired, however it's ease-of-use makes it a good stepping stone to learning C++.
How do you use software for inventory?
Inventory management is a very simple concept - don't have too much stock and don't have too little. Since there can be substantial costs involved in straying above and below the optimal range, careful inventory management can make a huge difference in the profitability of a business. Although the concept is simple, the process of getting the right balance can be quite a complex and time consuming task without the right software technology.
There are two fundamental questions that must be answered, in order to manage the inventory of any physical item - when to order and how much to order.
Inventory Management can be easy. The first step is defining what you need tracked or inventoried. Learn more by reading the quick "Guide to Buying Inventory Software That Fits"
How do you Convert the hexadecimal number A5 to a decimal number?
D: 0-15 X: 0-F Dec Hex 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 A 11 B 12 C 13 D 14 E 15 F D:16-31 X: 10-1F Dec Hex 16 10 17 11 18 12 19 13 20 14 21 15 22 16 23 17 24 18 25 19 26 1A 27 1B 28 1C 29 1D 30 1E 31 1F D: 32-47 X: 20-2F Dec Hex 32 20 33 21 34 22 35 23 36 24 37 25 38 26 39 27 40 28 41 29 42 2A 43 2B 44 2C 45 2D 46 2E 47 2F D: 48-63 X: 30-3F DecHex 48 30 49 31 50 32 51 33 52 34 53 35 54 36 55 37 56 38 57 39 58 3A 59 3B 60 3C 61 3D 62 3E 63 3F D: 64-79 X:40-4F Dec Hex 64 40 65 41 66 42 67 43 68 44 69 45 70 46 71 47 72 48 73 49 74 4A 75 4B 76 4C 77 4D 78 4E 79 4F D:80-95 X: 50-5F Dec Hex 80 50 81 51 82 52 83 53 84 54 85 55 86 56 87 57 88 58 89 59 90 5A 91 5B 92 5C 93 5D 94 5E 95 5F D: 96-111 X: 60-6F Dec Hex 96 60 97 61 98 62 99 63 100 64 101 65 102 66 103 67 104 68 105 69 106 6A 107 6B 108 6C 109 6D 110 6E 111 6F D: 112-127 X:70-7F Dec Hex 112 70 113 71 114 72 115 73 116 74 117 75 118 76 119 77 120 78 121 79 122 7A 123 7B 124 7C 125 7D 126 7E 127 7F D: 128-143 X: 80-8F Dec Hex 128 80 129 81 130 82 131 83 132 84 133 85 134 86 135 87 136 88 137 89 138 8A 139 8B 140 8C 141 8D 142 8E 143 8F D: 144-159 X: 90-9F Dec Hex 144 90 145 91 146 92 147 93 148 94 149 95 150 96 151 97 152 98 153 99 154 9A 155 9B 156 9C 157 9D 158 9E 159 9F D: 160-175 X: A0-AF DecHex 160 A0 161 A1 162 A2 163 A3 164 A4 165 A5 166 A6 167 A7 168 A8 169 A9 170 AA 171 AB 172 AC 173 AD 174 AE 175 AF D:176-191 X: B0-BF Dec Hex 176 B0 177 B1 178 B2 179 B3 180 B4 181 B5 182 B6 183 B7 184 B8 185 B9 186 BA 187 BB 188 BC 189 BD 190 BE 191 BF D: 192-207 X: C0-CF Dec Hex 192 C0 193 C1 194 C2 195 C3 196 C4 197 C5 198 C6 199 C7 200 C8 201 C9 202 CA 203 CB 204 CC 205 CD 206 CE 207 CF D: 208-223 X: D0-DF Dec Hex 208 D0 209 D1 210 D2 211 D3 212 D4 213 D5 214 D6 215 D7 216 D8 217 D9 218 DA 219 DB 220 DC 221 DD 222 DE 223 DF D: 224-239 X:E0-EF Dec Hex 224 E0 225 E1 226 E2 227 E3 228 E4 229 E5 230 E6 231 E7 232 E8 233 E9 234 EA 235 EB 236 EC 237 ED 238 EE 239 EF D: 240-255 X: F0-FF Dec Hex 240 F0 241 F1 242 F2 243 F3 244 F4 245 F5 246 F6 247 F7 248 F8 249 F9 250 FA 251 FB 252 FC 253 FD 254 FE 255 FF
When might you want the compiler to ignore type differences in an expression?
a compiler cannot "ignore" type differences, it only can silently
"convert" the items into a common data type, before further
processing. Such conversions require rules, how to make different
types compatible
What is open versus closed architecture?
Answer: In general, "open" architecture involves an entity that is built in a modularized manner, thus allowing the entity to be easily modified or upgraded by adding, deleting or replacing modules. Conversely, "closed" architecture involves an entity that is built homogeneously, making it difficult and expensive to subsequently modify or upgrade the entity. While Open & Closed architectural styles are generally associated with Engineering and Information Systems disciplines, a practical example can be found in office buildings. Some office buildings have fixed offices that have walls from floor to ceiling, rendering them difficult to modify. (Example of a "closed" architectural style). Other office buildings have large areas (i.e.: a complete floor) that can be turned into multiple offices by employing mobile office partitions and room dividers. (Example of an "open" architectural style).
What are the advantage of oops language?
Advantages of OOP Object-Oriented Programming has the following advantages over conventional approaches: * OOP provides a clear modular structure for programs which makes it good for defining abstract datatypes where implementation details are hidden and the unit has a clearly defined interface. * OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones. * OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces. Concepts of OOP: * Objects * Classes * Data Abstraction and Encapsulation * Inheritance * Polymorphism Objects Objects are the basic run-time entities in an object-oriented system. Programming problem is analyzed in terms of objects and nature of communication between them. When a program is executed, objects interact with each other by sending messages. Different objects can also interact with each other without knowing the details of their data or code. Classes A class is a collection of objects of similar type. Once a class is defined, any number of objects can be created which belong to that class. Data Abstraction and Encapsulation Abstraction refers to the act of representing essential features without including the background details or explanations. Classes use the concept of abstraction and are defined as a list of abstract attributes. Storing data and functions in a single unit (class) is encapsulation. Data cannot be accessible to the outside world and only those functions which are stored in the class can access it. Inheritance Inheritance is the process by which objects can acquire the properties of objects of other class. In OOP, inheritance provides reusability, like, adding additional features to an existing class without modifying it. This is achieved by deriving a new class from the existing one. The new class will have combined features of both the classes. Polymorphism Polymorphism means the ability to take more than one form. An operation may exhibit different behaviors in different instances. The behavior depends on the data types used in the operation. Polymorphism is extensively used in implementing Inheritance.
What is paradigm in reference to fundamentals of management?
The only way that I know paradigm would be used in business would be as in following certain protocol or set as a model for the business.
How do you delete a node with two children in binary tree using c?
Use a recursive function.
void delete_node (node* n) {
/* ensure the given pointer is valid */
if (n==NULL) return;
/* recursively delete the left child */
delete_node (n->left);
n->left = NULL;
/* recursively delete the right child */
delete_node (n->right);
n->right = NULL;
/* delete the data (assuming the data is a pointer)*/
free (n->data);
n->data = NULL;
/* finally, delete the node itself */
free (n);
n=NULL;
}
When was the Ceylon programming language created?
Ceylon - programming language - was created in 2011.
Why you cannot have full control over computer hardware when programming in high level language?
The higher level languages simplify instructions that could have taken many steps in a low level language. So puts("hello"); could be 20 instructions in assembler. So through this simplification, you lose a degree of control, depending on how high the language is.
What is the full form of APARNA?
There is no such abbreviation or acronym. In Hindu religion, the Goddess Parvati is known as Aparna, which means the "leafless one".
any grocery store will take herbal essences coupons if their either from their store or from the manufacturer. other then that the coupons acceptence all depends on the store it is designated for.
List the resources that must be managed carefully in the following settings Hand-held computers?
memory resources and power consumption
UDP
Sample c program printing output name address and age?
#include <windows.h> #include <stdio.h> void printstuff(char *Name, char *Address,int Age) { printf("Hi my name is %s, I live at %s and I am %d years old.\n",Name,Address,Age); } void main() { printstuff("John","1 john street",29); }
How do you write a C program that calculates parking charges for a given day?
#include
How do you connect a DVR to an IP camera and to a system?
You cannot connect a DVR directly to the camera. You have to use a computer connected to the camera. And Configure the camera in the way it saves all data on the computer hard drive. After that you will have to configure the computer to save the data to the DVR after certain period of time.