N Ntroduction TO Rogramming: Through
N Ntroduction TO Rogramming: Through
THROUGH C++
with
Manoj Prabhakaran
Lecture 1
Introduction
and drawing some pictures
¥ In the lab, later today: setup your system and start coding!
About CS 101
Computer Programming
¥ Computers can be used to do a lot of things
¥ All the different apps in your phone, laptop, É
¥ All the online services you use are provided by large computers (servers)
working together (network)
¥ Computers embedded inside washing machines, car engines, É
¥ And then there are the ÒCyber-Physical SystemsÓ: Flying an aeroplane,
controlling a robot or a self-driving car, running a nuclear reactor, É
¥ Note: We will not learn about all the features of C++ in this course.
The programming environment
¥ Will setup in today's lab!
Initial weeks: C++ augmented with Simplecpp
Simplecpp is a C++ library developed in IITB
¥ Provides facilities convenient to learners
Ð Graphics programming Ð more fun!
Ð Some minor conveniences
Later weeks: Only C++
¥ We may continue to use Simplecpp graphics
The textbook
An introduction to programming through C++, Abhiram Ranade,
McGraw Hill Education, 2014.
¥ www.cse.iitb.ac.in/~ranade/book.html
¥ Available in physical and on-line bookstores
¥ Integrated with use of simplecpp
if error
if error
A better way to draw a square
#include <simplecpp>
main_program{
turtleSim();
repeat(4){
forward(100);
right(90);
}
getClick();
}
A simplecpp
Repeat Statement convenience