Basic I/O: Difference between revisions

wikademia>Cybiko123
wikademia>Cybiko123
Line 46: Line 46:
On the coding level we can analyse the input and the output by the use of algorithms.  
On the coding level we can analyse the input and the output by the use of algorithms.  
On the coding level not all input produces output. There are five categories of input and output.
On the coding level not all input produces output. There are five categories of input and output.
  * remark type of inputs : no action and no calculation by the computer is done here
  * remark type of inputs: no action and no calculation by the computer is done here
  * declaring type of inputs : these inputs are preliminary to a calculation. you say here to the computer; get ready!  
  * declaring type of inputs: these inputs are preliminary to a calculation. you say here to the computer "Get ready!"
  * conditional inputs : the computer is confronted to a choice. this is post preliminary input
  * conditional inputs: the computer is confronted to a choice. this is post preliminary input
  * variable inputs : the computer is starting to use a variable, the variable has first value as null and can get on secondary level a value.  
  * variable inputs: the computer is starting to use a variable, the variable has first value as null and can get on secondary level a value.  
  * calculation inputs : here the computer is confronted to a calculation. The computer got into this level in the result of declarations, choices, and variable with values. Now it is using these to prepare the output
  * calculation inputs: here the computer is confronted to a calculation. The computer got into this level in the result of declarations, choices, and variable with values. Now it is using these to prepare the output


  - Finally the output as an electronic level: all calculations are electrical signals. So the result is at first coded as an electronic signals combination  
  - Finally the output as an electronic level: all calculations are electrical signals. So the result is at first coded as an electronic signals combination  
Line 58: Line 58:
  - The output as machine language = the 8 or 16 bit value converted into machine language
  - The output as machine language = the 8 or 16 bit value converted into machine language
  - the output converted to coder language = here the result is in the memory according the programming language used by the coder. Here I suppose the program is using machine language and translates it into the programming language of the coder.
  - the output converted to coder language = here the result is in the memory according the programming language used by the coder. Here I suppose the program is using machine language and translates it into the programming language of the coder.
So on this level we have seen that the more subtle electronic signals are used by the programmer to be translated into an intermediate language, so as to accomplish operations, calculations etc.


On the next level we will see the output on user level.
On the next level we will see the output on user level.