Friday 27 January 2017

Computer Programming (C++) [semester-2]

Computer Programming:




Second Semester Course Outline: https://goo.gl/PiHOqc

C++_How_to_Program_8th_Edition_Paul_Deitel_Harvey_Deitel : https://goo.gl/l8OoBT

C++ Essential by Sharam Hekmat (.pdf) Download Link: https://goo.gl/d8kBh9


What Is Programming?

In simple Words the process of writing computer programs, is called programming.

Computer programming (often shortened to programming) is a process that leads from an original formulation of a computing problem to executable computer programs. Programming involves activities such as analysis, developing understanding, generating algorithms, verification of requirements of algorithms including their correctness and resources consumption, and implementation (commonly referred to as coding) of algorithms in a target programming languageSource code is written in one or more programming languages. The purpose of programming is to find a sequence of instructions that will automate performing a specific task or solving a given problem.

What Is 'C++' ?

C++ is an object oriented programming ,
[( Object-oriented programming or OOP is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. A feature of objects is that an object's procedures can access and often modify the data fields of the object with which they are associated (objects have a notion of "this" or "self").]
C++ is a language, developed by Bjarne Stroustrup, and is an extension of C language. It is therefore possible to code C++ in a "C style" or "object-oriented style." In certain scenarios, it can be coded in either way and is thus an effective example of a hybrid language.
C++ is a general purpose object oriented programming language. It is considered to be an intermediate level language, as it encapsulates both high and low level language features. Initially, the language was called 'C with classes’ as it had all properties of C language with an additional concept of 'classes’. However, it was renamed to C++ in 1983.

Why We Use "using namespace std;" in C++?

When programs start to get really big, it gets difficult to keep track of all the functions and variables that you have already declared. This sometimes results in two different things being declared that have the same name. When this happens, the program will give you an error because the compiler can't tell which is which anymore.
This gets even worse when there are lots of different libraries involved in the program. If your audio library and your physics library both have functions called get_volume, then the compiler won't know which one to call, and you'll get a link error. This is even worse, because you often don't have the source code for these libraries, so the error is impossible to fix.
In C, the usual approach was to just add a prefix to the start of every function name, like physics_get_volume and audio_get_volume. The prefix would be the name of the library. This is a pain, and we wanted something a bit better designed in C++.
A namespace is a more flexible way of adding prefixes. So you can name the functions physics::get_volume and audio::get_volume. The difference is that if you know you're going to be writing a bunch of audio-specific source code, you can add "using namespace audio" at the top of your file, and then just call get_volume without the audio:: prefix for the rest of that file. It saves on typing. Another difference is that you can leave off all the prefixes while writing code inside the namespace itself, which again makes things easier to read.
The std namespace is special; it is short for the word "standard." The built in C++ library routines are kept in the standard namespace. That includes stuff like cout, cin, string, vector, map, etc. Because these tools are used so commonly, it's popular to add "using namespace std" at the top of your source code so that you won't have to type the std:: prefix constantly. And because these functions are kept in a namespace, if you really want to use "vector" as a variable name, you still can. Namespaces give you more freedom to use short, accurate names.
One side note: it is bad manners to put "using namespace" declarations in header files*. It forces all includers of that header file to use that namespace, which might result in naming ambiguities that are hard to fix. This practice is called "namespace pollution." Instead, always use the fully prefixed names in header files (std::string not string) and save the using declarations for the source files.
*One exception: If you are the owner of a given namespace (i.e. it's your library), and you add a "using namespace X" declaration inside of your namespace, you can do that in a header file. It's still namespace "pollution," but it's only polluting your own namespace, and you own that namespace. This is permissible, but be careful.

Books You should read for GATE Papers- GATE study Materials.

What you should read for GATE Papers?


Everyone wants good result and rank in any any exam. The systematic approach and conceptual study is highly important such that studying all the topics in deep with details in predefined time. All books are valuable in their aspects but choosing of the right and related books plays a vital role if you are preparing by your own.

There are a lot of books available in the market now a days, but we recommend you these two books, and our highly qualified teachers assured, it can lead you towards the top.






2015 GATE Engineering MathematicsThis is concludes all the topic wise theory and solved questions of previous gate papers. this book is best for preparing mathematics section of the gate exam. I will give a simple example, In matrix portion, first of all it explains RANKS in simple language and then it goes towards examples, taken from the previous papers, and then in the end exercise with explanation of each question.

buy it Now: https://goo.gl/LS5iWG






GATE - Computer Science & Information Technology : 23 Years GATE Solved Papers with thorough Explanations 1st  Edition






This book comprise of the solved past papers of about 23 years. All the questions are comprise in their respective sections with explanation.


buy it Now: https://goo.gl/b85k04

Personal Supercomputers.

The Promise Of Personal SuperComputers:


What is PSC (personal super computer)?

A PSC has the ability and power between the supercomputers and personal computers, in fact it is a high- performance computers. They are good for individual tasks, and very good in computing a significant amount data for a single user or for an organization. The commercial models of PSCs are also available but usually they are made by the user themselves or by their order. Although comparatively they are expensive than a personal computer (PC) but affordable to many people.

What will it take to put hundreds of microprocessors in laptops and in cell-phones?

In February 2007, Intel announced a research project, the first ever programmable TERASCALE superchip. The company demonstrated a single chip with 80 cores, or processor,  and showed that these cores could be programmed to execute numbers at the rate of a trillion operations per second, a measure known as a TERAFLOPThe size of the chip is about a large postage stamp, but it has the same calculation speed as a supercomputer that, in 1996, took up about 2,000 square feet and drew about 1,000 times more power.

This research was one of the initial steps taken by Intel towards massively Multicore Technology, said Nitin Borkar, engineering manager and lab project head at Intel. "The goal, he says, is to use this chip to test techniques that could make massively multicore technology faster, more energy efficient, and, most daunting, easy to program. These techniques will be “funneled into future products” that could appear, if all goes well, within five to ten years."

Now we see, the promise of personal supercomputer is been fulfilled, we can see many personal supercomputers by many different companies like Apple, IBM, Intel, Limulus etc.. 

Supercomputing in Pakistan: https://goo.gl/FlsMQD

PERSONAL SUPERCOMPUTERS 2016:

BASEMENT SUPERCOMPUTING (by LIMULUS PERSONAL HPC SYSTEMS) : https://goo.gl/r7mCVE


NVIDIA TESLA SUPERCOMPUTER: https://goo.gl/CUxyp2

HIGH PERFORMANCE COMPUTER DELL https://goo.gl/cLJfqB

PERSONAL SUPERCOMPUTER PRICE IN PAKISTAN: https://goo.gl/CX4Y7V