Lab scenarios in programming
1. Working with Code::Blocks
IDE (integrated development environment). Creating project. (lab1.htm)
C++:
lab1.1.cpp; lab1.2.cpp
Python: lab1.1.py;
lab1.2.py
2. Compiler/interpreter error
messages, data types, input/output. (lab2.htm)
C++:
lab2.1.cpp; lab2.2.cpp;
lab2.3.cpp; lab2.4.cpp;
lab2.5.cpp
Python: lab2.3.py;
lab2.3a.py; lab2.3b.py;
lab2.4.py; lab2.4a.py;
lab2.4b.py; lab2.4c.py
C++ input/output: io.cpp;
ioplus.cpp; iorepeat.cpp;
iorepeatplus.cpp
JavaScript input/output: ioprompt1.html;
ioprompt2.html;
iohtml.html
3. Data types. Numeric
expressions. (lab3.htm)
C++:
lab3.1.cpp; lab3.2.cpp
Python: lab3.1.py;
lab3.1a.py; lab3.1b.py;
lab3.2.py
4. 'if' and 'for' statements. (lab4.htm)
C++:
lab4.1.cpp; lab4.2.cpp;
lab4.3.cpp; lab4.4.cpp
Python: lab4.1.py;
lab4.2.py; lab4.3.py;
lab4.4.py
5. Logical expressions and
loops. (lab5.htm)
C++:
lab5.1.cpp; lab5.2.cpp;
lab5.3.cpp
Python: lab5.1.py;
lab5.2.py
6. Arrays and character strings. (lab6.htm)
C++: lab6.1.cpp;
lab6.2.cpp
Python: lab6.1.py
7. Two-dimensional arrays. (lab7.htm)
lab7.1.cpp
8. Array processing. (lab8.htm)
C++: lab8.1.cpp;
lab8.2.cpp; lab8.3.cpp
Python: lab8.1a.py
9. Functions. (lab9.htm)
lab9.1.cpp;
lab9.2.cpp; lab9.3.cpp
10. Array processing in functions. (lab10.htm)
lab10.1.cpp;
lab10.2.cpp;
lab10.3.cpp; lab10.4.cpp;
lab10.5.cpp
11. C-style string processing in functions. (lab11.htm)
lab11.1.cpp;
lab11.2.cpp;
lab11.3.cpp
12. Object-oriented programming (class transformation). (lab12.htm)
lab12.1.cpp;
lab12.2.cpp
13. Object-oriented programming (constructor, destructor, dynamic array). (lab13.htm)
lab13.1.cpp;
lab13.2.cpp;
lab13.3.cpp
14. Object-oriented programming (creation of simple classes) (lab14.htm)
lab14.1.cpp;
lab14.2.cpp
|