Metal Set - Link Select Metal Set - Loading What is Computer Program ?





What is Computer Program?

Computer Program is set of instruction to perform a specific task or to solve a specific problem in a systematic and efficient manner. We can use different programming languages and different Environments for writing and developing a program. Common programming languages are C , C++ , C# , Java , Python etc.


 For a  program we have to focus on these simple steps.

  v  Understand the Problem statement
  v  Simplify the Problem statement
  v  Design and Write Program Algorithms
  v  Design Flow chart
  v  Write program code
  v  Test



                                                1st we have to read our problem statement and understand what actually we have to solve and what resources we can use for this purpose we 2ndly divide our problem in short and simple parts so we can solve all sub parts of problem easily. In 3rd step we write algorithm to solve our problem algorithm is solution of problem in simple high-level language (English) we write algorithm for flexibility by using this algorithm we can write program code in any required Programming language.  
                                            In 4th step we design graphical structure of our program in same flow as it gonna be happen in our compiler we use specific fingers for specific step. In 5th step we write actual code of our program by using design algorithm and specific programming language here we are going to discus according to C++ , We firstly include header file in our program by using #include Keyword then active std function by writing “ using namespace std “ our cout cin are belongs to std then we move to our main function this is  also the entry point for our program control . In void main we write solution instruction for our problem.  A simple program for beginners.

Problem statement:

                                     Print “GCUFBOOKS.COM” on your console screen.  

Program

#include<iostream>
#include<conio.h>
Using namespace std;
void main()
{
//this statement is for printing a string to console screen
cout<<”GCUFBOOKS.COM”;
// this statement is for pausing this output screen
getch();
}






Next
This is the most recent post.
Previous
Older Post

3 comments:

 
Top