Fundamentals of a program - Unmasp - experience exhibiting blog

Post Top Ad

Post Top Ad

Fundamentals of a program

Basics of a program:



    1.    Computers are very dumb machines.They only do what they are told to do
    
    2.     The basic operations of a computer will form what is known as the computer’s           instruction set 
  
    3.     To solve a problem using a computer,you must provide a solution to the problem by sending instructions to the instructions set.a computer program sends the instructions necessary to solve a specific problem
  
    4.     The approach or method that is used to solve the problem is known as the algorithm
   So, if we here to create a program that tests if a number is odd or even

    5.     That statements that solve the problem becomes the program
  
    6.     The method that is used to test  if the number is even or odd is the algorithm
  
    7.     To write a program,you need to write the instructions necessary to implement the algorithm.these instrutions would bse expressed in the statements of a particular computer language,such as java,c,c++
  
Terminology
   
    1.     CPU(central processing unit).does most of the computer works.instructions are executed here
  
    2.     RAM(random access memory)stores the data of a program while it is running
  
    3.     Hard drive(permenant storage)stores files that contain program source code,even while the computer is turned off
  
    4.     Operating system devoleped to help make it more convenient to use computers.a program that controls  the entire operation of a compute
  
    5.     All input and output
1.     Manages the computer’s resources and handles the execution of programs
2.     Windows,unix,android,etc.
  
    6.     Fetch/execute cylcle(life of a CPU)
  
    7.     Fetches an indtruction from memory and executes it.a gigahertz cpu can do this about a billion times a second
Fetch cycle



Higher level programing languages
  
    1.     High level programing languages make it easier to write programs.opposite of assembly language
  
    2.     C is higher level programing language that describes actions in a more abstract form
  
    3.     The higher instructions of a program look more like problem solving steps.do not have to worry about the  precise  steps a particular CPU would have to take to accomplish a particular task
  
    4.     Total=x+vs.mv ax,5,mv cx 4,etc…..
  
    5.     Compilers:a program that translates the high level source code language in to  the detailed set of machine language instructions the computer requires
  
    6.     The program does the high level thinking and the compiler generates the tedious instructions to the cpu
  
    7.     Compilers will also check that your program has valid syntax for the programing language that you are compiling
  
    8.     Find errors and it reports them to you and doesn’t produce an executable until you fix them
  
    9.     High level languages are easier to learn and much easier to program in than are machine languages

          Link given below to know more about programing

https://www.computerscience.org/resources/computer-programming-languages/


Writing a program
  
    1.     The act of writing a program can be broken down into multiple steps

     

 Steps in writing a program
1.     Define the program objectives
1.understand the program requirements
2.Get a clear idea of what you want the program to accomplish
         2.  Design
               1.Decide how the program will meet the above requirements
               2.what should the user interface be like?
               3.how should the program be organized?
         3. Write the code
              1.start implementation,translate the design in syntax of c
              2.you need to use a text editor to create what is called a source code
         4.compile
                1.Translate the source code in to a machine file
                2.consists of detailed instructions to the cpu expressed in a numeric code
         5.Run the program
             1.The executable is a program you can run
         6.Test and debug the program
             1.just because a program is running,does not mean it works as intended
             2.Need to test,to see that your program does what it is supposed to do
             3.debugging is the process of finding and fixing program errors
             4.Making mistakes is a natural part of learning
         7.Maintain and modify the program
            1.programs are released and used by many people
            2.Have to continue to fix new bugs or add new features

By following this steps you can write a program.

Related Posts

No comments:

Post a Comment

Post Bottom Ad