CO252 - Introduction To Programming and Networking For Electrical Engineering
CO252 - Introduction To Programming and Networking For Electrical Engineering
CO252 - Introduction To Programming and Networking For Electrical Engineering
Admin stuff
3
credit course
Two lectures per week and labs which will start from 3rd week Also some assignments
Programming
programming Not a particular language Programming methods/techniques etc. Make your own notes Based on Introduction to Programming in Java @ MIT
CPU Instructions
Write
in a higher level language and get it translated to what the CPU can understand
Many languages
Number
of different languages
Each made for a particular area Example: C, Java, Python, Haskell, F# etc. They have their advantages and disadvantages
Need to pick the correct language for the task Mostly differ in the syntax
Java
Compiling Java
First program
Structure
- Class name and file name should be the same - Usually capital letter for class name
Handling outputs
st
Variables
Assignment
Can
be combined with declaration Can use other variables and computations Value can vary over time
Ex1
Operations
Order of Operations
Ex2
Example:
Strings?
Next lecture
More
on types