上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Computational Thinking and Approach Lecture 2 Dr.Jialiang LU Jialiang.lu@situ.edu.cn
Computational Thinking and Approach Lecture 2 Dr. Jialiang LU Jialiang.lu@sjtu.edu.cn 1
上游充通大学 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Variables,Expression and Statements Elements of Programs 。Comments 。Output Statements Assignment Statements ·Compound Statements Goode Programming Style 2
Variables, Expression and Statements • Elements of Programs • Comments • Output Statements • Assignment Statements • Compound Statements • Goode Programming Style 2
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY The Software Development Process The process of creating a program is often broken down into stages according to the information that is produced in each phase. 3
The Software Development Process • The process of creating a program is often broken down into stages according to the information that is produced in each phase. 3
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY The Software Development Process ·Analyze the Problem Figure out exactly the problem to be solved. Try to understand it as much as possible. 4
The Software Development Process • Analyze the Problem Figure out exactly the problem to be solved. Try to understand it as much as possible. 4
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY The Software Development Process Determine Specifications Describe exactly what your program will do. Don't worry about how the program will work,but what it will do. Includes describing the inputs,outputs,and how they relate to one another. 5
The Software Development Process • Determine Specifications Describe exactly what your program will do. – Don’t worry about how the program will work, but what it will do. – Includes describing the inputs, outputs, and how they relate to one another. 5