In: Computer Science
Please type out answer for i can copy it. Need at least 175 words. Thank you very much.
-Question
Why are data manipulation, efficiency, and memory useful in programming? Provide specific examples for each.
Note: Done accordingly. Please comment for any problem. Please Uprate. Thanks.
Computers, basically, do two things: make calculations (arithmetic or logical) and remember information. That is, they're manipulating and storing information.Each programming phase includes either data manipulation (calculation) or storage, even when it seems that we are dealing with textual information. This is because, internally, all information in a computer is essentially represented as numeric values. Users in the accounting sector or comparable areas often manipulate information to determine product expenses, sales patterns or prospective tax commitments. Stock market analysts commonly use information manipulation to forecast trends in the stock market and how stocks could perform in the near future. Computers may also use data manipulation to show information to users in a more significant manner, depending on a software program, web page, or user-defined data formatting. So data manipulation is very important.
Efficiency in programming is also important as computers can only perform a restricted amount of activities at a specified moment, generally around a billion activities per second. Here, by an individual procedure, we mean adding, multiplying, assigning a value to a variable, etc. So if we want our algorithm to finish running in a second or so, then we need to make sure that the total number of operations we are asking for is less than 1 billion and make our algorithm efficient. Taking example of video call if program is not implemented efficiently then there will be too much lag in a video call which will result in poor rating of the application and loss to the company.
The general output of your system depends on how well your processor speed and memory work together. The more memory your CPU has access to, the easier it gets to work, enabling a quicker computer. If you don't have enough memory that your CPU has to operate a lot, it's much difficult to transfer information, which damages the efficiency of your computer a few times. So programmer should consider about proper memory usage and should use only that much memory which is required. Example suppose your program needs an array of 10 integers but you allocate 100 instead of dynamically allocating and freeing the memory then that much memory is wasted.