Answer: a plus sign
Explanation: I just did the assignment and got it right
<h2>
Answer:</h2>
A software is simply define as a program that allows computers to perform certain task. Software are performed in order to control and manage the operations of a computer. The main software of a computer is the operating system and its goal is to allow other software to run correctly. On the other hand, electronic data processing refers to the processing of data performed by a computer. This is performed when data input are set in the computer and they performs an output. Input and outputs depends on the application you are developing.
<u>Key Words:</u> Software, Programs, Computer, Processing of Electronic Data
Answer:
cin.ignore function written as cin.ignore()
Explanation:
- As we know that cin is an object that is used to obtain the input entered by the user through the keyboard.
- cin.ignore() is a function which is used to ignore or skip one or more characters in the keyboard buffer.
- Keyboard buffer is a small storage area which is used to store keystrokes.
- When a key is pressed on the keyboard it is referred to as a keystroke.
- So before processing, these keystrokes are stored in keyboard buffer.
- So when we use cin to input a character from the user through the keyboard, the keyboard buffer must be empty. If that's not done then the character entered will be taken by the buffer of previous variable.
- Lets take an example of why we want to use cin.ignore() function.
- For example you want the employee (user) to enter his name and you are using cin to read this name from the user.
char empname[8];
cin>>empname;
- Now if the user types his name lets say Anonymous and press enter key this will be taken as new line character and it will store this newline character \n into the buffer.
- cin >> statement reads data from the buffer and stops reading when it reaches newline character.
- So Anonymous is read in and stored in empname variable but newline character is left in the keyboard buffer.
- Lets say after cin>>empname we write another statement that takes a character from user. A user wants to enter character "a".
char character;
character = cin.get();
- When cin.get finds the newline character \n in keyboard buffer, it uses it (as cin.get can read the newline character in the buffer) without waiting for the user to input "a".
- So cin.ignore() function is used to avoid such situation.
- We can specify the characters to be ignore within the cin.ignore() function such as cin.ignore(10,'\n') will ignore 10 characters in the buffer before taking new line or until a \n character comes.
- You can simply use cin.ignore() which will ignore the very next character just as \n in our example. In our example we can use cin.ignore() after the cin>>empname; and before using cin.get();
Cache stores all the recent and the very active instructions and data into the cache memory. It has lesser time accessing these instructions than the main memory. It improves the speed of the CPU by acting as a high speed buffer between the CPU and the main memory. Types of cache memory is divided into three levels.
L1 cache – It is the primary type of cache memory. It’s the smallest in size but extremely fast. It is usually embedded in the CPU
L2 cache – Also referred to as the secondary cache. It has more capacity than L1. If instructions are not found on the L1 cache, they are searched in L2 by the microprocessor.
L3 cache
It is the largest in size but is usually the slowest in speeds as compared to the L1 and L2. It is developed to improve the performance of L1 and L2. Most L3 caches have double the speed of RAM
Human factors/ergonomics researchers found that engaging in casual video game play during rest breaks can help restore mood in response to workplace stress